Skip to content

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

Merged
domthom21 merged 1 commit into
mainfrom
alert-autofix-1
Oct 30, 2025
Merged

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

Conversation

@domthom21

Copy link
Copy Markdown
Owner

Potential fix for https://github.com/domthom21/eurocodedesign/security/code-scanning/1

To fix this issue, add a top-level permissions block to the workflow YAML file (.github/workflows/tox.yml). This block should specify only the minimal permissions required by the workflow. In this case, because the workflow checks out code and runs tests using tox, it only needs read access to repository contents. The fix should be applied at the root of the workflow file, above or below the name/on keys, but before the jobs key, as per standard GitHub Actions documentation. No methods or additional imports are needed—just the insertion of the block.

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>
@domthom21
domthom21 marked this pull request as ready for review October 30, 2025 15:21
@domthom21
domthom21 merged commit 79a95e1 into main Oct 30, 2025
7 checks passed
@domthom21
domthom21 deleted the alert-autofix-1 branch October 30, 2025 15:21
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