Skip to content

Potential fix for code scanning alert no. 1: Workflow does not contain permissions#80

Merged
melisms merged 1 commit into
mainfrom
alert-autofix-1
May 30, 2026
Merged

Potential fix for code scanning alert no. 1: Workflow does not contain permissions#80
melisms merged 1 commit into
mainfrom
alert-autofix-1

Conversation

@melisms
Copy link
Copy Markdown
Owner

@melisms melisms commented May 30, 2026

Potential fix for https://github.com/melisms/paddle/security/code-scanning/1

Add an explicit top-level permissions block in .github/workflows/ci.yml so all jobs inherit least privilege by default.

Best fix here: define at workflow root:

  • contents: read (needed for actions/checkout)
  • no additional scopes unless required

This preserves existing functionality while ensuring token permissions remain constrained even if org/repo defaults change.

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>
@melisms melisms marked this pull request as ready for review May 30, 2026 21:23
@melisms melisms merged commit 484b37d into main May 30, 2026
8 checks passed
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.

1 participant