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

fix(ci): don't persist credentials in actions/checkout #991

Merged
merged 1 commit into from
Jan 11, 2025

Conversation

stefanboca
Copy link
Collaborator

Identified with zizmor. It's also possible to run zizmore in ci, but I didn't implement this because it requires a GITHUB_TOKEN secret.

Identified with [zizmor](https://woodruffw.github.io/zizmor/).
It's also possible to [run zizmore in ci](https://woodruffw.github.io/zizmor/usage/#use-in-github-actions),
but I didn't implement this because it requires a GITHUB_TOKEN secret.
Copy link

Deploying blink-cmp-main with  Cloudflare Pages  Cloudflare Pages

Latest commit: 2ff9d4f
Status:🚫  Build failed.

View logs

@stefanboca
Copy link
Collaborator Author

This is, assuming that the release action doesn't require persist-credentials: true. If it does, it should be explicitly set.

@Saghen
Copy link
Owner

Saghen commented Jan 11, 2025

It only has contents: read permission, does it matter?

@stefanboca
Copy link
Collaborator Author

stefanboca commented Jan 11, 2025

The docs state

When the permissions key is used, all unspecified permissions are set to no access, with the exception of the metadata scope, which always gets read access.

so apparently not. Although IMHO, I don't see how it can hurt :)

Please feel free to close this if you think it isn't necessary though.

@Saghen Saghen merged commit 1ddd01b into main Jan 11, 2025
5 of 6 checks passed
@Saghen
Copy link
Owner

Saghen commented Jan 11, 2025

I don't see how it can hurt

Yup good point, thanks!

@stefanboca stefanboca deleted the sb/push-kznstxlpqxrs branch January 12, 2025 03:37
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.

2 participants