Repository navigation
ci: scope dispatch permissions and align CI docs - #341
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR tightens the permissions model for the smoke-test repository dispatch workflow to better follow GitHub Actions least-privilege guidance, and documents the change in the changelog(s).
Changes:
- Reduce default
GITHUB_TOKENpermissions in the smoke-testrepository-dispatch.ymlworkflow tocontents: read. - Grant
contents: writeonly to thepublish-releasejob (the job that creates/edits GitHub Releases). - Record the security hardening in both the canonical and workspace/devcontainer changelogs.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| CHANGELOG.md | Adds a Security entry describing the least-privilege permissions change. |
| assets/workspace/.devcontainer/CHANGELOG.md | Mirrors the same Security entry for the workspace/devcontainer changelog copy. |
| assets/smoke-test/.github/workflows/repository-dispatch.yml | Drops workflow-wide contents from write→read and scopes write access to publish-release only. |
💡 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.
Description
This PR addresses two Copilot findings for the smoke-test
repository_dispatchworkflow template by hardening token permissions and fixing CI trigger documentation drift. It also adds the corresponding## Unreleasedchangelog entry for issue traceability.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
assets/smoke-test/.github/workflows/repository-dispatch.ymlci.ymlandci-container.yml)GITHUB_TOKENscope tocontents: readcontents: writeonly atpublish-releasejob levelCHANGELOG.mdUnreleasedSecurityentry for issue#340assets/workspace/.devcontainer/CHANGELOG.mdChangelog Entry
Security
assets/smoke-test/.github/workflows/repository-dispatch.ymlworkflow token permissions from write to read by defaultcontents: writeonly topublish-release, the single job that creates or edits GitHub ReleasesTesting
just test)Manual Testing Details
N/A
Checklist
docs/templates/, then runjust docs)CHANGELOG.mdin the[Unreleased]section (and pasted the entry above)Additional Notes
Copilot review reference in downstream PR:
Refs: #340