Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/actionlint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# actionlint v1.7.12 predates GitHub background/wait steps.
paths:
.github/workflows/release.yaml:
ignore:
- '^unexpected key "background" for step to execute action\.'
- '^step must run script with "run" section or run action with "uses" section$'
6 changes: 4 additions & 2 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
pull_request:
workflow_dispatch:

permissions:
contents: read
Comment thread
skevetter marked this conversation as resolved.

jobs:
lint:
name: Lint
Expand Down Expand Up @@ -33,7 +36,6 @@ jobs:

- name: megalinter
uses: oxsecurity/megalinter@9949bad031045f366be2467e00e8371a7328a2e2 # v10
if: ${{ (github.event_name == 'push' && github.ref == 'refs/heads/main') }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VALIDATE_ALL_CODEBASE: false
VALIDATE_ALL_CODEBASE: true
3 changes: 3 additions & 0 deletions .mega-linter.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
ENABLE_ERRORS_LINTERS:
- ACTION_ACTIONLINT

ACTION_ACTIONLINT_CONFIG_FILE: LINTER_DEFAULT
GITHUB_COMMENT_REPORTER: false

BASH_SHFMT_ARGUMENTS: ["-i", "4", "-ci", "-w"]
2 changes: 0 additions & 2 deletions prek.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@ rev = "v1.7.12"

[[repos.hooks]]
id = "actionlint"
# v1.7.12 predates GitHub's background/wait steps; GitHub validates their syntax.
args = ['-ignore', 'unexpected key "background" for step', '-ignore', 'step must run script with "run" section or run action with "uses" section']
files = "^\\.github/workflows/"

[[repos]]
Expand Down
Loading