Skip to content

ci(release): reduce permissions, avoid persisting credentials#20

Merged
JonZeolla merged 1 commit intomainfrom
feat/reduce-release-perms
Jul 8, 2025
Merged

ci(release): reduce permissions, avoid persisting credentials#20
JonZeolla merged 1 commit intomainfrom
feat/reduce-release-perms

Conversation

@JonZeolla
Copy link
Copy Markdown
Member

Contributor Comments

This reduces the permissions of the GITHUB_TOKEN when running a release on a generated project (it no longer asks for PR: write permissions), and it also doesn't persist git creds, which is the default for actions/checkout@v4

I manually tested this in a project I generated and saw that it was still able to make a relase.

Screenshot 2025-07-08 at 11 39 54 AM

Pull Request Checklist

Thank you for submitting a contribution!

Please address the following items:

  • If you are adding a dependency, please explain how it was chosen.
  • If manual testing is needed in order to validate the changes, provide a testing plan and the expected results.
  • Validate that documentation is accurate and aligned to any project updates or additions.

@JonZeolla JonZeolla enabled auto-merge (squash) July 8, 2025 15:40
Copy link
Copy Markdown

@ai-coding-guardrails ai-coding-guardrails Bot left a comment

Choose a reason for hiding this comment

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

I've got 1 comment for you to consider

Reviewed with 🤟 by Zenable

@JonZeolla JonZeolla merged commit 49c46d0 into main Jul 8, 2025
8 checks passed
@JonZeolla JonZeolla deleted the feat/reduce-release-perms branch July 8, 2025 16:01
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.

1 participant