-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
root
authored and
root
committed
Sep 22, 2023
1 parent
369a17b
commit 5009424
Showing
3 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners | ||
* @vbem |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
name: Super Linter | ||
|
||
env: | ||
TZ: Asia/Shanghai | ||
|
||
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-only-cancel-in-progress-jobs-or-runs-for-the-current-workflow | ||
concurrency: | ||
group: ${{ github.workflow }}@${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
on: | ||
push: | ||
branches: [master, main] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
linter: | ||
use: ./.github/workflows/linter-default.yml | ||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
name: Reusable workflow - Super Linter - Default | ||
|
||
on: # https://docs.github.com/en/actions/using-workflows/reusing-workflows | ||
workflow_call: | ||
|
||
jobs: | ||
linter: | ||
runs-on: [ubuntu-latest] | ||
|
||
permissions: | ||
contents: read | ||
packages: read | ||
statuses: write | ||
|
||
steps: | ||
# https://github.com/marketplace/actions/checkout | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 # Full git history is needed to get a proper list of changed files within `super-linter` | ||
|
||
# https://github.com/marketplace/actions/super-linter | ||
- uses: super-linter/super-linter/slim@v5 | ||
name: 🔎🔎🔎 Run Super-Linter | ||
env: | ||
SUPPRESS_POSSUM: true | ||
DEFAULT_BRANCH: ${{ github.event.repository.default_branch }} | ||
GITHUB_TOKEN: ${{ github.token }} | ||
GITHUB_ACTIONS_COMMAND_ARGS: '-ignore colons -ignore line-length' # https://github.com/rhysd/actionlint/blob/main/docs/usage.md#super-linter | ||
HADOLINT_FAILURE_THRESHOLD: error # https://github.com/hadolint/hadolint#configure | ||
SHELLCHECK_OPTS: '--severity=warning' # https://github.com/koalaman/shellcheck#pre-commit | ||
VALIDATE_BASH_EXEC: false | ||
... |