Skip to content

ci: scope GITHUB_TOKEN to read-only on CI workflow#34

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

ci: scope GITHUB_TOKEN to read-only on CI workflow#34
arpitjain099 wants to merge 1 commit into
pinterest:masterfrom
arpitjain099:chore/restrict-workflow-token-perms

Conversation

@arpitjain099
Copy link
Copy Markdown

Adds permissions: contents: read to the CI workflow. This workflow checks out the repository, runs xcodebuild, and lints the CocoaPods podspec. It does not need any write access. Restricting the token scope limits the impact of a compromised action or dependency.

Reference: https://docs.github.com/en/actions/security-for-github-actions/security-guides/automatic-token-authentication

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