Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug - Check: CKV2_GHA_1: "Ensure top-level permissions are not set to write-all" #759

Open
wjohnston-sfdc opened this issue Mar 20, 2024 · 0 comments

Comments

@wjohnston-sfdc
Copy link

Hi, I ran your code through checkov https://www.checkov.io/5.Policy%20Index/github_actions.html.

Command

/dist/checkov -d ./commitlint-github-action/ --framework github_actions

Snip of output

Check: CKV2_GHA_1: "Ensure top-level permissions are not set to write-all"
	FAILED for resource: on(CI)
	File: /.github/workflows/ci.yml:6-7
Check: CKV2_GHA_1: "Ensure top-level permissions are not set to write-all"
	FAILED for resource: on(Commitlint)
	File: /.github/workflows/commitlint.yml:0-1

added permissions: read to commitlint-github-action/.github/workflows/ci.yml

Can you patch both files?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant