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

Set permissions for nodejs and publish workflows #34

Merged
merged 2 commits into from
Sep 25, 2024

Conversation

jibrang
Copy link
Contributor

@jibrang jibrang commented Sep 25, 2024

We are specifying permissions for the nodejs and publish workflows. These should the least permissions needed for the workflows to run.

This PR will close the following Dependabot alerts:

@jibrang jibrang requested a review from a team as a code owner September 25, 2024 18:30
@@ -4,6 +4,11 @@ on:
release:
types: [created]

permissions:
contents: read
packages: write
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need packages here? I don't think we do given we publish only to npm now

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think contents: read is enough

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your comments. I updated the PR.

@jibrang jibrang merged commit 5ec4395 into master Sep 25, 2024
4 checks passed
@jibrang jibrang deleted the jibrang/set-workflow-permissions branch September 25, 2024 19:51
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.

3 participants