Skip to content

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

Description

@wjohnston-sfdc

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions