Skip to content

tools: use hashes instead of tags for external actions - #43284

Merged
aduh95 merged 2 commits into
nodejs:masterfrom
aduh95:no-tags-for-external-actions
Jun 5, 2022
Merged

tools: use hashes instead of tags for external actions#43284
aduh95 merged 2 commits into
nodejs:masterfrom
aduh95:no-tags-for-external-actions

Conversation

@aduh95

@aduh95 aduh95 commented Jun 1, 2022

Copy link
Copy Markdown
Contributor

Using tags is a security risk, as they can be updated to point to
anything else.

Refs: nodejs/corepack#117 (comment)

Using tags is a security risk, as they can be updated to point to
anything else.

Refs: nodejs/corepack#117 (comment)
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/actions

@nodejs-github-bot nodejs-github-bot added the meta Issues and PRs related to the general management of the project. label Jun 1, 2022
Comment thread .github/workflows/coverage-linux.yml Outdated
Comment thread .github/workflows/coverage-windows.yml Outdated
@lpinca

lpinca commented Jun 1, 2022

Copy link
Copy Markdown
Member

Using tags is a security risk, as they can be updated to point to anything else.

Isn't this also valid for actions/* actions?

@aduh95

aduh95 commented Jun 1, 2022

Copy link
Copy Markdown
Contributor Author

Using tags is a security risk, as they can be updated to point to anything else.

Isn't this also valid for actions/* actions?

actions/* are controlled by GitHub, who controls the runners and the secrets anyway, so I don't think it's a risk to trust them with tags.

Co-authored-by: Michaël Zasso <targos@protonmail.com>
@aduh95 aduh95 added the author ready PRs with CI started, the required approvals, and no outstanding review comments. label Jun 2, 2022
@bnb

bnb commented Jun 4, 2022

Copy link
Copy Markdown
Contributor

glad that we're doing this :)

@aduh95 aduh95 added commit-queue PRs queued for automated landing through the Commit Queue. commit-queue-squash PRs the Commit Queue should land as one squashed commit. labels Jun 5, 2022
@nodejs-github-bot nodejs-github-bot added commit-queue-failed PRs whose Commit Queue landing failed and need manual intervention before retrying. and removed commit-queue PRs queued for automated landing through the Commit Queue. labels Jun 5, 2022
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator
Commit Queue failed
- Loading data for nodejs/node/pull/43284
✔  Done loading data for nodejs/node/pull/43284
----------------------------------- PR info ------------------------------------
Title      tools: use hashes instead of tags for external actions (#43284)
   ⚠  Could not retrieve the email or name of the PR author's from user's GitHub profile!
Branch     aduh95:no-tags-for-external-actions -> nodejs:master
Labels     meta, author ready, commit-queue-squash
Commits    2
 - tools: use hashes instead of tags for external actions
 - Apply suggestions from code review
Committers 2
 - Antoine du Hamel 
 - GitHub 
PR-URL: https://github.com/nodejs/node/pull/43284
Reviewed-By: Michaël Zasso 
Reviewed-By: Luigi Pinca 
------------------------------ Generated metadata ------------------------------
PR-URL: https://github.com/nodejs/node/pull/43284
Reviewed-By: Michaël Zasso 
Reviewed-By: Luigi Pinca 
--------------------------------------------------------------------------------
   ℹ  This PR was created on Wed, 01 Jun 2022 15:21:17 GMT
   ✔  Approvals: 2
   ✔  - Michaël Zasso (@targos) (TSC): https://github.com/nodejs/node/pull/43284#pullrequestreview-993164651
   ✔  - Luigi Pinca (@lpinca): https://github.com/nodejs/node/pull/43284#pullrequestreview-995322504
   ✖  Last GitHub CI failed
   ℹ  Green GitHub CI is sufficient
--------------------------------------------------------------------------------
   ✔  Aborted `git node land` session in /home/runner/work/node/node/.ncu
https://github.com/nodejs/node/actions/runs/2444122549

@aduh95
aduh95 merged commit c7c8d86 into nodejs:master Jun 5, 2022
@aduh95

aduh95 commented Jun 5, 2022

Copy link
Copy Markdown
Contributor Author

Landed in c7c8d86

@aduh95
aduh95 deleted the no-tags-for-external-actions branch June 5, 2022 19:45
danielleadams pushed a commit that referenced this pull request Jun 11, 2022
Using tags is a security risk, as they can be updated to point to
anything else.

Refs: nodejs/corepack#117 (comment)

PR-URL: #43284
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
@danielleadams danielleadams mentioned this pull request Jun 11, 2022
danielleadams pushed a commit that referenced this pull request Jun 13, 2022
Using tags is a security risk, as they can be updated to point to
anything else.

Refs: nodejs/corepack#117 (comment)

PR-URL: #43284
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
targos pushed a commit that referenced this pull request Jul 12, 2022
Using tags is a security risk, as they can be updated to point to
anything else.

Refs: nodejs/corepack#117 (comment)

PR-URL: #43284
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
targos pushed a commit that referenced this pull request Jul 31, 2022
Using tags is a security risk, as they can be updated to point to
anything else.

Refs: nodejs/corepack#117 (comment)

PR-URL: #43284
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
guangwong pushed a commit to noslate-project/node that referenced this pull request Oct 10, 2022
Using tags is a security risk, as they can be updated to point to
anything else.

Refs: nodejs/corepack#117 (comment)

PR-URL: nodejs/node#43284
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs with CI started, the required approvals, and no outstanding review comments. commit-queue-failed PRs whose Commit Queue landing failed and need manual intervention before retrying. commit-queue-squash PRs the Commit Queue should land as one squashed commit. 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.

5 participants