Skip to content

ci: set explicit read-only permissions on CI workflow#283

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

ci: set explicit read-only permissions on CI workflow#283
arpitjain099 wants to merge 1 commit into
linkedin:mainfrom
arpitjain099:chore/restrict-workflow-token-perms

Conversation

@arpitjain099
Copy link
Copy Markdown

Declares permissions: contents: read on the CI workflow. The workflow only checks out code, installs pip dependencies, and runs tox tests. It does not need write access to any GitHub API scope.

Restricting the token scope is recommended by the OpenSSF Scorecard project and limits exposure in the event a third-party action is compromised.

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