Skip to content

ci: restrict token permissions on build-and-test workflow#96

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

ci: restrict token permissions on build-and-test workflow#96
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 and Run Tests workflow.

This workflow only checks out the repo and runs Gradle build/test. It does not need write access to repository contents or any other GitHub API scope. Adding an explicit permissions block scopes the GITHUB_TOKEN to the minimum required, limiting exposure in case of a supply-chain compromise.

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