Skip to content

Potential fix for code scanning alert: workflow does not contain permissions - #2

Merged
judsd merged 1 commit into
masterfrom
alert-autofix-1
Sep 10, 2026
Merged

judsd merged 1 commit into
masterfrom
alert-autofix-1

Conversation

@judsd

@judsd judsd commented Sep 10, 2026

Copy link
Copy Markdown
Member

Potential fix for https://github.com/pfoundation/oc2Usage/security/code-scanning/1

Add an explicit permissions block to .github/workflows/ci.yml with least-privilege scope.
Best fix without changing functionality: define workflow-level permissions right after on: (or before jobs:) as:

  • contents: read

This is sufficient for actions/checkout and read-only CI tasks, and avoids granting unnecessary write scopes. No other workflow behavior needs to 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>
@judsd
judsd marked this pull request as ready for review September 10, 2026 00:33
@judsd
judsd merged commit 9347dff into master Sep 10, 2026
5 checks passed
@judsd
judsd deleted the alert-autofix-1 branch September 10, 2026 00:34
@judsd judsd changed the title Potential fix for code scanning alert no. 1: Workflow does not contain permissions Potential fix for code scanning alert: Workflow does not contain permissions Sep 10, 2026
@judsd judsd changed the title Potential fix for code scanning alert: Workflow does not contain permissions Potential fix for code scanning alert: workflow does not contain permissions Sep 10, 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.

1 participant