Skip to content

Conversation

@rajbos
Copy link

@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".

name: Build
runs-on: ubuntu-20.04
permissions:
contents: read # permissions needed to be able to run the checkout action
Copy link
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
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
Member

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