Skip to content

Restrict verify workflow token permissions - #6

Merged
Nitya Narasimhan (nitya) merged 2 commits into
mainfrom
copilot/fix-code-scanning-alerts
Aug 21, 2026
Merged

Restrict verify workflow token permissions#6
Nitya Narasimhan (nitya) merged 2 commits into
mainfrom
copilot/fix-code-scanning-alerts

Conversation

Copilot AI commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

CodeQL flagged the verify workflow for relying on default GITHUB_TOKEN permissions. This change scopes the workflow token explicitly to read-only repository contents access.

  • Workflow permissions
    • Added workflow-level permissions to .github/workflows/verify-course.yml
    • Limits the token to the access required by checkout and test execution
permissions:
  contents: read

Co-authored-by: nitya <279083+nitya@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix code scanning alert(s) flagged in repository Restrict verify workflow token permissions Aug 21, 2026
@nitya
Nitya Narasimhan (nitya) merged commit 9a04930 into main Aug 21, 2026
4 checks passed
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