Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

chore: Set permissions for GitHub actions#733

Open
nathannaveen wants to merge 1 commit into
sendgrid:mainsendgrid/sendgrid-java:mainfrom
turrisxyz:setup-permissionsturrisxyz/sendgrid-java:setup-permissionsCopy head branch name to clipboard
Open

chore: Set permissions for GitHub actions#733
nathannaveen wants to merge 1 commit into
sendgrid:mainsendgrid/sendgrid-java:mainfrom
turrisxyz:setup-permissionsturrisxyz/sendgrid-java:setup-permissionsCopy head branch name to clipboard

Conversation

@nathannaveen

Copy link
Copy Markdown

 Restrict the GitHub token permissions only to the required ones; this way, even if the attackers will succeed in compromising your workflow, they won’t be able to do much.

- Included permissions for the action. https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions

https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions

https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs

[Keeping your GitHub Actions and workflows secure Part 1: Preventing pwn requests](https://securitylab.github.com/research/github-actions-preventing-pwn-requests/)

Signed-off-by: nathannaveen <42319948+nathannaveen@users.noreply.github.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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.