Skip to content
This repository was archived by the owner on Aug 13, 2025. It is now read-only.

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

Merged
aeijdenberg merged 1 commit into
masterfrom
alert-autofix-1
Aug 3, 2025
Merged

Potential fix for code scanning alert no. 1: Workflow does not contain permissions#6
aeijdenberg merged 1 commit into
masterfrom
alert-autofix-1

Conversation

@aeijdenberg

Copy link
Copy Markdown
Member

Potential fix for https://github.com/continusec/verifiabledatastructures/security/code-scanning/1

To fix the problem, add a permissions block to the workflow to explicitly set the minimum required permissions for the GITHUB_TOKEN. Since the workflow only checks out code, builds, and tests, it only needs read access to repository contents. The best way to do this is to add permissions: contents: read at the top level of the workflow (just after the name: key and before on:), so it applies to all jobs unless overridden. No changes to steps or jobs are needed.


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>
@aeijdenberg
aeijdenberg marked this pull request as ready for review August 3, 2025 23:28
@aeijdenberg
aeijdenberg merged commit 168d516 into master Aug 3, 2025
5 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant