Skip to content

Add explicit least-privilege permissions to build workflow - #105

Merged
3breadt merged 2 commits into
masterfrom
copilot/fix-code-scanning-alerts
Jul 24, 2026
Merged

Add explicit least-privilege permissions to build workflow#105
3breadt merged 2 commits into
masterfrom
copilot/fix-code-scanning-alerts

Conversation

Copilot AI commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

This addresses the code scanning finding on the GitHub Actions workflow by making GITHUB_TOKEN permissions explicit. The build workflow now declares only the repository access it requires.

  • Workflow permissions

    • Add a top-level permissions block to /home/runner/work/dd-plist/dd-plist/.github/workflows/build.yml
    • Scope the workflow token to read-only repository contents
  • Behavioral impact

    • No job logic, build steps, or artifact handling changed
    • The change is limited to workflow security posture
permissions:
  contents: read

Copilot AI changed the title [WIP] Fix code scanning alert(s) flagged in repository Add explicit least-privilege permissions to build workflow Jul 24, 2026
Copilot AI requested a review from 3breadt July 24, 2026 10:21
@3breadt
3breadt marked this pull request as ready for review July 24, 2026 10:26
@3breadt
3breadt merged commit 63c1c34 into master Jul 24, 2026
4 checks passed
@3breadt
3breadt deleted the copilot/fix-code-scanning-alerts branch July 24, 2026 11:02
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.

2 participants