Skip to content

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

Merged
Carter Tinney (cartertinney) merged 3 commits into
mainfrom
copilot/fix-code-scanning-alerts
Aug 21, 2026
Merged

Fix CodeQL alert #7: add explicit permissions to syncToDevOps workflow#1234
Carter Tinney (cartertinney) merged 3 commits into
mainfrom
copilot/fix-code-scanning-alerts

Conversation

Copilot AI commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

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 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds least-privilege permissions to the Azure DevOps issue-sync workflow.

Changes:

  • Disables all GITHUB_TOKEN permissions at workflow level.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@cartertinney
Carter Tinney (cartertinney) merged commit 8589f1b into main Aug 21, 2026
18 checks passed
@cartertinney
Carter Tinney (cartertinney) deleted the copilot/fix-code-scanning-alerts branch August 21, 2026 23:45
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.

5 participants