Skip to content

Conversation

@AugustinMauroy
Copy link
Member

@aduh95
Copy link
Contributor

aduh95 commented Jun 14, 2025

You need to adjust the workflow permissions. You can use https://github.com/nodejs/corepack/blob/c6c6cee4ee4159cd8a78d8d28ef43757b3a813b7/.github/workflows/publish.yml as an inspiration.

@AugustinMauroy
Copy link
Member Author

Any chance you could move the other permission set off of the top-level?

With my knowledge it's should be on step level for security reasons

Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
@aduh95
Copy link
Contributor

aduh95 commented Jun 15, 2025

Any chance you could move the other permission set off of the top-level?

With my knowledge it's should be on step level for security reasons

It sounds like we agree then, let's move the following down at the job level:

permissions:
contents: write
pull-requests: write

@aduh95 aduh95 merged commit 6d59723 into nodejs:main Jun 16, 2025
1 check passed
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.

npm publish with provenance

2 participants