Skip to content

ci: declare minimum token permissions for build workflow#1025

Open
arpitjain099 wants to merge 1 commit into
linkedin:masterfrom
arpitjain099:chore/restrict-workflow-token-perms
Open

ci: declare minimum token permissions for build workflow#1025
arpitjain099 wants to merge 1 commit into
linkedin:masterfrom
arpitjain099:chore/restrict-workflow-token-perms

Conversation

@arpitjain099
Copy link
Copy Markdown

Adds permissions: contents: read to the Build workflow.

The workflow checks out the repository and runs a build script. It does not interact with the GitHub API in any way that requires write access, so scoping the token to read-only follows the principle of least privilege.

This reduces the blast radius if a compromised dependency or action tries to use the token for unauthorized operations.

Signed-off-by: Arpit Jain <arpitjain099@gmail.com>
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.

1 participant