close
Skip to content

Potential fix for code scanning alert no. 17: Workflow does not contain permissions#649

Merged
cute-omega merged 1 commit into
masterfrom
alert-autofix-17
Jun 29, 2026
Merged

Potential fix for code scanning alert no. 17: Workflow does not contain permissions#649
cute-omega merged 1 commit into
masterfrom
alert-autofix-17

Conversation

@cute-omega

Copy link
Copy Markdown
Collaborator

Potential fix for https://github.com/docmirror/dev-sidecar/security/code-scanning/17

Add an explicit permissions block in .github/workflows/build-and-release.yml at the workflow root (after on: and before jobs:), so all jobs inherit least-privilege defaults.
Given this workflow builds artifacts and performs a release step, the safest non-breaking baseline here is:

  • contents: write (needed for creating/updating releases and uploading release assets)
  • (other scopes default to none when any permission is specified)

This preserves expected release behavior while still removing unnecessary token access.

Suggested fixes powered by Copilot Autofix. Review carefully before merging.

…in permissions

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@cute-omega
cute-omega marked this pull request as ready for review June 29, 2026 06:24
@cute-omega
cute-omega merged commit 9a8a327 into master Jun 29, 2026
7 checks passed
@cute-omega
cute-omega deleted the alert-autofix-17 branch June 29, 2026 06:24
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