chore: update action versions and adjust permissions in workflow files#331
Open
chore: update action versions and adjust permissions in workflow files#331
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the repository’s GitHub Actions workflows by pinning action references to immutable SHAs and adding explicit GITHUB_TOKEN permissions. It affects the release pipeline plus the audit/config-generation automation that maintains Windows audit data and generated rule metadata.
Changes:
- Pin core workflow actions (
checkout,setup-node,upload-artifact, and PR automation actions) to specific commit SHAs with version annotations. - Add explicit workflow-level permissions for read-only workflows and write-capable automation workflows.
- Adjust release, audit-check, CSV-generation, and rule-metadata workflows to use the updated action references.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
.github/workflows/release.yml |
Pins release workflow actions and adds explicit read-only repository permissions. |
.github/workflows/create-rule-meta.yml |
Pins checkout/PR automation actions and grants write permissions for automated rule update PRs. |
.github/workflows/create-csv.yml |
Pins checkout and enables repository write access for the CSV generation workflow. |
.github/workflows/check-audit.yml |
Pins checkout and adds explicit read-only permissions for the audit validation workflow. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Changed
I have updated third-party action references to use full-length commit SHA, following the best practices.
I’d appreciate it if you could check it when you have time🙏