FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

tools: add GitHub token permissions to label flaky-test issues by gabibguti · Pull Request #45308 · nodejs/node · GitHub

/ node Public

tools: add GitHub token permissions to label flaky-test issues - #45308

Merged
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
gabibguti:workflow-permissions
Dec 4, 2022
Merged

tools: add GitHub token permissions to label flaky-test issues#45308
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
gabibguti:workflow-permissions

Conversation

Copy link
Copy Markdown
Contributor

Add minimum GITHUB_TOKEN permissions for label-flaky-test-issue.yml workflow.

Motivation: Setting minimum permissions on workflow's top level is good practice. Similar changes were previously discussed in #43743. Since label flaky-test issues workflow was recently added, this PR is a small update to restrict it's permissions.


About me: I'm Gabriela and I work on behalf of Google and the OpenSSF suggesting supply-chain security changes :)

Signed-off-by: Gabriela Gutierrez gabigutierrez@google.com

Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/actions

nodejs-github-bot added the meta Issues and PRs related to the general management of the project. label Nov 3, 2022

aduh95 commented Nov 3, 2022

Copy link
Copy Markdown
Contributor

Is read permission actually enough for labelling issues? That seems quite counter intuitive to me.

gabibguti commented Nov 7, 2022
edited
Loading

Copy link
Copy Markdown
Contributor Author

Is read permission actually enough for labelling issues? That seems quite counter intuitive to me.

No, you are right, it is not. The permission that allows labelling the issues is issues: write inside the job in line 12 of the unchanged file.

The contents: read permission before the job is to avoid this job and other jobs from "by default" being able to access the contents of the repository. Access to the contents of the repository means being able to create files, delete files, among other things.

aduh95 added author ready PRs that have at least one approval, no outstanding review comments, and a CI started. commit-queue Add this label to land a pull request using GitHub Actions. labels Dec 4, 2022
nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Dec 4, 2022
nodejs-github-bot merged commit de696d7 into nodejs:main Dec 4, 2022

Copy link
Copy Markdown
Collaborator

Landed in de696d7

gabibguti deleted the workflow-permissions branch December 6, 2022 17:59
targos pushed a commit that referenced this pull request Dec 12, 2022
Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>
PR-URL: #45308
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
danielleadams pushed a commit that referenced this pull request Dec 30, 2022
Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>
PR-URL: #45308
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
danielleadams pushed a commit that referenced this pull request Jan 3, 2023
Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>
PR-URL: #45308
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
danielleadams pushed a commit that referenced this pull request Jan 5, 2023
Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>
PR-URL: #45308
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs that have at least one approval, no outstanding review comments, and a CI started. meta Issues and PRs related to the general management of the project.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL