Skip to content

Add explicit permissions to Shai-Hulud workflow (CodeQL alert #45) - #244

Draft
Audun Solemdal (audunsolemdal) with Copilot wants to merge 2 commits into
masterfrom
copilot/fix-code-scanning-alerts
Draft

Add explicit permissions to Shai-Hulud workflow (CodeQL alert #45)#244
Audun Solemdal (audunsolemdal) with Copilot wants to merge 2 commits into
masterfrom
copilot/fix-code-scanning-alerts

Conversation

Copilot AI commented Aug 28, 2026

Copy link
Copy Markdown

Workflows without explicit permissions blocks inherit repository/org defaults, which may be overly broad. This adds least-privilege permissions to the security-check job.

Changes

  • .github/workflows/shai.yaml: Added permissions: contents: read to the security-check job — sufficient for actions/checkout, nothing more needed.
jobs:
    security-check:
        permissions:
            contents: read
        runs-on: ubuntu-latest

Co-authored-by: audunsolemdal <21334768+audunsolemdal@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix code scanning alert #45 Add explicit permissions to Shai-Hulud workflow (CodeQL alert #45) Aug 28, 2026
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