Skip to content

Update README.md with permissions keyword where needed#449

Open
rajbos wants to merge 1 commit into
aquasecurity:masterfrom
rajbos:patch-1
Open

Update README.md with permissions keyword where needed#449
rajbos wants to merge 1 commit into
aquasecurity:masterfrom
rajbos:patch-1

Conversation

@rajbos
Copy link
Copy Markdown

@rajbos rajbos commented Feb 10, 2025

Adds the permissions keyword with correct config in all examples that push the sarif file to the security tab of the repo. With this update, people will have an easier time implementing the examples and prevent strange issues with "Resource not accessible by integration".

Comment thread README.md
name: Build
runs-on: ubuntu-20.04
permissions:
contents: read # permissions needed to be able to run the checkout action
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't the contents: read permission only needed for private repositories?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one was more to always have permissions filled in, to make it explicit and match the other examples.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should be up to the user to specify. We don't want to grant permissions in the case when it's not needed.

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

Successfully merging this pull request may close these issues.

3 participants