Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Set permissions for GitHub actions #4474

Closed

Conversation

nathannaveen
Copy link

 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>
@mergify mergify bot added the CI Travis, Circle CI, etc label Jun 28, 2022
@codecov
Copy link

codecov bot commented Jun 28, 2022

Codecov Report

Merging #4474 (cc50eb7) into master (57c0543) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #4474   +/-   ##
=======================================
  Coverage   82.41%   82.41%           
=======================================
  Files         481      481           
  Lines       41237    41237           
=======================================
  Hits        33984    33984           
  Misses       7253     7253           
Flag Coverage Δ
test_integration_espnet1 66.38% <ø> (ø)
test_integration_espnet2 49.17% <ø> (ø)
test_python 69.41% <ø> (ø)
test_utils 23.30% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

@mergify
Copy link
Contributor

mergify bot commented Apr 27, 2023

This pull request is now in conflict :(

@mergify mergify bot added the conflicts label Apr 27, 2023
@sw005320 sw005320 closed this Jul 20, 2023
@mergify mergify bot removed the conflicts label Jul 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI Travis, Circle CI, etc
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants