-
Notifications
You must be signed in to change notification settings - Fork 7
ci: fix release job permissions #831
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
Conversation
The release build jobs need 'contents: write' permissions to be able to update the release.
While convenient it does not follow the rule of minimal privileges
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR refines CI workflows by replacing inherited secrets with explicit TEST_GITHUB_* secrets and tightening job permissions to enable safe release operations.
- Removed
secrets: inheritand specified explicitTEST_GITHUB_*secrets for relevant jobs - Granted
contents: writepermission to the release notes template and adjusted release job dependencies - Updated CI and release workflows to use explicit secrets for the build-push-test reusable job
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| .github/workflows/wc-build-push-test.yml | Removed inherited secrets, added explicit secrets for acceptance-test only |
| .github/workflows/release-build.yml | Added explicit secrets to build-push-test, granted contents write, updated job needs |
| .github/workflows/continuous-integration.yml | Added explicit secrets to build-push-test job |
Comments suppressed due to low confidence (2)
.github/workflows/wc-build-push-test.yml:51
- The integration-test job no longer inherits any secrets but doesn’t specify explicit ones. If it requires authentication (e.g., TEST_GITHUB_TOKEN), add the necessary secrets block to avoid job failures.
uses: ./.github/workflows/wc-integration-test.yml
.github/workflows/release-build.yml:20
- [nitpick] Defining the same set of TEST_GITHUB_* secrets in multiple workflows leads to duplication. Consider centralizing these secrets in a reusable workflow or a shared environment to simplify maintenance.
secrets:
Signed-off-by: Ron <[email protected]>
🦙 MegaLinter status:
|
| Descriptor | Linter | Files | Fixed | Errors | Warnings | Elapsed time |
|---|---|---|---|---|---|---|
| ✅ ACTION | actionlint | 18 | 0 | 0 | 0.62s | |
| ✅ DOCKERFILE | hadolint | 2 | 0 | 0 | 0.86s | |
| ✅ GHERKIN | gherkin-lint | 2 | 0 | 0 | 0.91s | |
| ✅ JSON | npm-package-json-lint | yes | no | no | 0.43s | |
| ✅ JSON | prettier | 16 | 1 | 0 | 0 | 0.49s |
| ✅ JSON | v8r | 16 | 0 | 0 | 7.6s | |
| ✅ MARKDOWN | markdownlint | 9 | 0 | 0 | 0 | 0.89s |
| ✅ MARKDOWN | markdown-table-formatter | 9 | 0 | 0 | 0 | 0.29s |
| ✅ REPOSITORY | checkov | yes | no | no | 16.99s | |
| ✅ REPOSITORY | gitleaks | yes | no | no | 0.41s | |
| ✅ REPOSITORY | git_diff | yes | no | no | 0.01s | |
| grype | yes | no | 2 | 23.31s | ||
| ✅ REPOSITORY | secretlint | yes | no | no | 0.95s | |
| ✅ REPOSITORY | syft | yes | no | no | 1.9s | |
| ✅ REPOSITORY | trivy | yes | no | no | 6.79s | |
| ✅ REPOSITORY | trivy-sbom | yes | no | no | 0.23s | |
| ✅ REPOSITORY | trufflehog | yes | no | no | 4.47s | |
| ✅ SPELL | lychee | 63 | 0 | 0 | 2.19s | |
| ✅ YAML | prettier | 24 | 0 | 0 | 0 | 0.92s |
| ✅ YAML | v8r | 24 | 0 | 0 | 6.79s | |
| ✅ YAML | yamllint | 24 | 0 | 0 | 0.95s |
See detailed report in MegaLinter reports
📦 Container Size AnalysisComparing 📈 Size Comparison Table
|
📦 Container Size AnalysisComparing 📈 Size Comparison Table
|
|
Pull Request Report (#831)Static measures
Time related measures
Status check related measures
|
|
🎉 Hooray! The changes in this pull request went live with the release of v6.2.0 🎉 |




🚀 Hey, I have created a Pull Request
Description of changes
This PR fixes permissions for the release jobs. They need to write to the release, and therefor need content: write permissions.
✔️ Checklist