Skip to content

Potential fix for code scanning alert no. 2: Workflow does not contain permissions - #50

Merged
K-1873 merged 1 commit into
mainfrom
feature/alert-autofix-2
May 15, 2026
Merged

Potential fix for code scanning alert no. 2: Workflow does not contain permissions#50
K-1873 merged 1 commit into
mainfrom
feature/alert-autofix-2

Conversation

@K-1873

@K-1873 K-1873 commented May 15, 2026

Copy link
Copy Markdown
Contributor

Potential fix for https://github.com/AndanteTribe/CommonUI/security/code-scanning/2

Add an explicit permissions block to the workflow so token scopes are constrained and documented.
Best fix without changing functionality: define workflow-level permissions with contents: read, since all current jobs appear read-only and this is the minimal recommended baseline from the alert.

File to change: .github/workflows/unity-meta-check.yml
Region: near the top-level keys, right after on: block (before jobs:).
Change needed: insert:

permissions:
  contents: read

No imports, methods, or dependencies are required.

Suggested fixes powered by Copilot Autofix. Review carefully before merging.

…n permissions

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@K-1873
K-1873 marked this pull request as ready for review May 15, 2026 14:59
Copilot AI review requested due to automatic review settings May 15, 2026 14:59

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 explicit minimal GitHub Actions permissions to address the workflow security alert without changing workflow behavior.

Changes:

  • Adds workflow-level permissions with contents: read.
  • Keeps the existing Unity meta file check job unchanged.

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

@K-1873
K-1873 merged commit d78d42b into main May 15, 2026
8 checks passed
@K-1873
K-1873 deleted the feature/alert-autofix-2 branch May 15, 2026 15:02
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