Skip to content

Potential fix for code scanning alert no. 9: Workflow does not contain permissions#66

Merged
cawalch merged 1 commit intomainfrom
alert-autofix-9
Jul 13, 2025
Merged

Potential fix for code scanning alert no. 9: Workflow does not contain permissions#66
cawalch merged 1 commit intomainfrom
alert-autofix-9

Conversation

@cawalch
Copy link
Collaborator

@cawalch cawalch commented Jul 13, 2025

Potential fix for https://github.com/jmespath-community/typescript-jmespath/security/code-scanning/9

To fix the issue, we need to add the permissions key at the root of the workflow. This will apply the permissions block to all jobs in the workflow unless overridden by individual job-level permissions. The permissions should be scoped to the least privileges required for the tasks in the workflow. Based on the tasks performed (checking out code, uploading artifacts), contents: read and actions: write are appropriate minimal permissions.

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>
@cawalch cawalch marked this pull request as ready for review July 13, 2025 20:06
@cawalch cawalch merged commit 05955bc into main Jul 13, 2025
7 checks passed
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