Skip to content

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

Merged
s-celles merged 1 commit intomainfrom
alert-autofix-1bis
Apr 14, 2026
Merged

Potential fix for code scanning alert no. 1: Workflow does not contain permissions#3
s-celles merged 1 commit intomainfrom
alert-autofix-1bis

Conversation

@s-celles
Copy link
Copy Markdown
Owner

Potential fix for https://github.com/s-celles/PureHTTP2.jl/security/code-scanning/1

Add an explicit top-level permissions block in .github/workflows/CI.yml so all jobs inherit least-privilege token access by default.
Best single fix without changing behavior is:

  • Insert immediately after the on: block (before concurrency:):
    • permissions:
    • contents: read

This satisfies CodeQL, documents intended token scope, and keeps functionality intact for checkout/test workflows.

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>
@s-celles s-celles marked this pull request as ready for review April 14, 2026 07:55
@s-celles s-celles merged commit d8f0160 into main Apr 14, 2026
9 checks passed
@s-celles s-celles deleted the alert-autofix-1bis branch April 14, 2026 07:56
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