Skip to content

fix: add explicit permissions to build job workflow - #21

Merged
mregen merged 2 commits into
mainfrom
copilot/fix-code-scanning-alerts
Aug 20, 2026
Merged

fix: add explicit permissions to build job workflow#21
mregen merged 2 commits into
mainfrom
copilot/fix-code-scanning-alerts

Conversation

Copilot AI commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

The build job in build.yml had no explicit permissions block, leaving it subject to whatever repository-default GITHUB_TOKEN permissions were configured — violating least-privilege (CodeQL actions/missing-workflow-permissions, alert #1).

Changes

  • .github/workflows/build.yml: Added permissions: contents: read to the build job — the minimum required for actions/checkout. The publish job already had its own explicit permissions and is unchanged.
jobs:
  build:
    runs-on: ubuntu-latest
    permissions:
      contents: read

Co-authored-by: mregen <7962757+mregen@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix code scanning alert flagged in repository fix: add explicit permissions to build job workflow Aug 20, 2026
Copilot AI requested a review from mregen August 20, 2026 04:54
@mregen
mregen marked this pull request as ready for review August 20, 2026 05:41
@mregen
mregen merged commit fad173d into main Aug 20, 2026
6 checks passed
@mregen
mregen deleted the copilot/fix-code-scanning-alerts branch August 20, 2026 05:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants