Skip to content

TPT-3778: Add explicit GitHub Actions permissions#107

Open
zliang-akamai wants to merge 1 commit into
linode:mainfrom
zliang-akamai:fix/workflow-permissions
Open

TPT-3778: Add explicit GitHub Actions permissions#107
zliang-akamai wants to merge 1 commit into
linode:mainfrom
zliang-akamai:fix/workflow-permissions

Conversation

@zliang-akamai

@zliang-akamai zliang-akamai commented Jul 21, 2026

Copy link
Copy Markdown
Member

📝 Description

Add explicit least-privilege contents: read permission to the combined test and lint workflow.

This addresses code scanning alert 71 for actions/missing-workflow-permissions. Code scanning alert 70 points to the historical .github/workflows/lint.yaml, which has already been removed from main; a subsequent default-branch scan should close that stale finding.

@zliang-akamai
zliang-akamai requested review from a team as code owners July 21, 2026 22:00
@zliang-akamai zliang-akamai changed the title Add explicit GitHub Actions permissions TPT-3778: Add explicit GitHub Actions permissions Jul 21, 2026
@zliang-akamai
zliang-akamai requested a review from Copilot July 21, 2026 22:43

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

This PR updates the combined test/lint GitHub Actions workflow to explicitly declare least-privilege permissions, addressing the actions/missing-workflow-permissions code scanning finding by setting the workflow’s default GITHUB_TOKEN permission to contents: read.

Changes:

  • Add an explicit top-level permissions block to .github/workflows/tests.yaml.
  • Restrict workflow token permissions to contents: read (sufficient for actions/checkout in this workflow).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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