Skip to content

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

Closed
JamieSinn wants to merge 1 commit into
mainfrom
alert-autofix-2
Closed

Potential fix for code scanning alert no. 2: Workflow does not contain permissions#19
JamieSinn wants to merge 1 commit into
mainfrom
alert-autofix-2

Conversation

@JamieSinn

Copy link
Copy Markdown
Member

Potential fix for https://github.com/DevCycleHQ/assemblyscript-regex/security/code-scanning/2

To fix the issue, explicitly set the permissions required for the workflow, ideally at the root level to ensure all jobs inherit the restriction. Since this workflow only checks out the code and runs tests, no write access is necessary, so the minimal required permissions are contents: read. To implement this, add a permissions block near the top of the file, preferably just after the name key and before the on key, as shown in the best practices examples. No new methods, definitions, or imports 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>
@JamieSinn JamieSinn closed this Dec 8, 2025
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