ci: add least-privilege permissions to release-extension workflow#149
Merged
Conversation
…l (refs #568, #562)
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.
Description
Add explicit least-privilege workflow permissions to
release-extension.yml. This workflow is listed inPRESERVE_FILESduring smoke-test re-sync, so the upstream #562 fix does not auto-propagate; this PR applies the samecontents: readdefault directly in the smoke-test repo (refs #568, #562).Type of Change
feat-- New featurefix-- Bug fixdocs-- Documentation onlychore-- Maintenance task (deps, config, etc.)refactor-- Code restructuring (no behavior change)test-- Adding or updating testsci-- CI/CD pipeline changesbuild-- Build system or dependency changesrevert-- Reverts a previous commitstyle-- Code style (formatting, whitespace)Modifiers
!) -- This change breaks backward compatibilityChanges Made
.github/workflows/release-extension.ymlpermissions: contents: readso the reusable extension hook runs with least privilege instead of inheriting broader defaultsChangelog Entry
No changelog needed — internal CI permissions tweak with no user-visible behavior change.
Testing
just test)Manual Testing Details
N/A — workflow permissions only; no runtime behavior change.
Checklist
docs/templates/, then runjust docs)CHANGELOG.mdin the[Unreleased]section (and pasted the entry above)Additional Notes
release-extension.ymlis preserved on smoke-test re-sync (PRESERVE_FILESin upstreaminit-workspace.sh), so this one-time direct fix is required alongside the template change tracked in upstream #562.Refs: #568, #562