Skip to content

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

Draft
mark-goodall wants to merge 1 commit into
mainfrom
alert-autofix-2
Draft

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

Conversation

@mark-goodall
Copy link
Copy Markdown
Owner

Potential fix for https://github.com/mark-goodall/curvewalk/security/code-scanning/2

To fix the issue, we need to add a permissions block to the workflow. This can be done either at the global level (affecting all jobs) or for the specific job that lacks it (build-release). Since the publish-release job already has its own permissions block, the best approach is to define permissions globally at the root level of the workflow for consistency and simplicity. The global permissions block should specify the minimum privileges required, such as contents: read for checkout operations.

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>
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jul 7, 2025

Package Line Rate Health
curvewalk 97%
tests 100%
Summary 99% (370 / 375)

Minimum allowed line rate is 90%

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