Skip to content

Fix CodeQL alert #7: add explicit permissions to syncToDevOps workflow#1234

Draft
cartertinney with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-code-scanning-alerts
Draft

Fix CodeQL alert #7: add explicit permissions to syncToDevOps workflow#1234
cartertinney with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-code-scanning-alerts

Conversation

Copilot AI commented Jul 22, 2026

Copy link
Copy Markdown

The syncToDevOps.yml workflow had no explicit permissions block, leaving the GITHUB_TOKEN scoped to repo defaults — a violation of least privilege flagged by CodeQL (actions/missing-workflow-permissions).

Changes

  • .github/workflows/syncToDevOps.yml: Added permissions: {} at the workflow level

This workflow only syncs GitHub issue events to Azure DevOps via an ADO PAT; it never calls the GitHub API, so no token scopes are required.

permissions: {}

Copilot AI changed the title [WIP] Fix code scanning alert #7 Fix CodeQL alert #7: add explicit permissions to syncToDevOps workflow Jul 22, 2026
Copilot AI requested a review from cartertinney July 22, 2026 14:12
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