Skip to content

Commit 90683f5

Browse files
authored
Disable Checkov check CKV2_GHA_1 (#76)
We want to allow top-level GH Actions permissions to be write-all
1 parent 7134bff commit 90683f5

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

.github/workflows/super-linter-non-slim.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ jobs:
5353
env:
5454
ANSIBLE_CONFIG_FILE: ansible/.ansible-lint.yml
5555
ANSIBLE_DIRECTORY: ${{ inputs.ANSIBLE_DIRECTORY }}
56+
CHECKOV_FILE_NAME: checkov/.checkov.yaml
5657
DEFAULT_BRANCH: main
5758
GITHUB_TOKEN: ${{ github.token }}
5859
JAVA_FILE_NAME: java/checkstyle/checkstyle.xml

.github/workflows/super-linter.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ jobs:
6565
env:
6666
ANSIBLE_CONFIG_FILE: ansible/.ansible-lint.yml
6767
ANSIBLE_DIRECTORY: ${{ inputs.ANSIBLE_DIRECTORY }}
68+
CHECKOV_FILE_NAME: checkov/.checkov.yaml
6869
DEFAULT_BRANCH: main
6970
FILTER_REGEX_EXCLUDE: "${{ inputs.FILTER_REGEX_EXCLUDE }}"
7071
GITHUB_TOKEN: ${{ github.token }}

checkov/.checkov.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
# Don't report passed checks in output
3+
quiet: true
4+
5+
# Skip specific checks by their Checkov ID
6+
skip-check:
7+
- CKV2_GHA_1 # We want to allow top-level GH Actions permissions to be write-all

0 commit comments

Comments
 (0)