Skip to content

Restrict CI workflow token permissions - #545

Merged
liuliu-dev merged 2 commits into
mainfrom
copilot/fix-code-scanning-alerts
Aug 26, 2026
Merged

Restrict CI workflow token permissions#545
liuliu-dev merged 2 commits into
mainfrom
copilot/fix-code-scanning-alerts

Conversation

Copilot AI commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

The CI workflow inherited unspecified GITHUB_TOKEN permissions, triggering CodeQL’s workflow-permissions alert. This change declares the minimum repository permission required by the workflow.

  • GitHub Actions security
    • Add root-level read-only contents permission to the CI workflow.
permissions:
  contents: read

Co-authored-by: liuliu-dev <6688812+liuliu-dev@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix code scanning alert(s) flagged in repository Restrict CI workflow token permissions Aug 26, 2026
Copilot AI requested a review from liuliu-dev August 26, 2026 05:07
@liuliu-dev
liuliu-dev marked this pull request as ready for review August 26, 2026 05:09
@liuliu-dev
liuliu-dev merged commit 07eb0c8 into main Aug 26, 2026
5 checks passed
@liuliu-dev
liuliu-dev deleted the copilot/fix-code-scanning-alerts branch August 27, 2026 05:23
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