Skip to content

Potential fix for code scanning alert no. 5: Workflow does not contain permissions#87

Merged
wozjac merged 1 commit into
mainfrom
alert-autofix-5
Jun 11, 2025
Merged

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

Conversation

@wozjac
Copy link
Copy Markdown
Owner

@wozjac wozjac commented Jun 11, 2025

Potential fix for https://github.com/wozjac/vscode-ui5-api-reference/security/code-scanning/5

To fix the issue, we will add a permissions block at the root of the workflow file. This block will specify the minimal permissions required for the workflow to function correctly. Based on the provided workflow, the contents: read permission is sufficient for most steps, and contents: write is not required. Additionally, the pull-requests: write permission is not needed unless explicitly stated.

The permissions block will be added after the name field and before the on field to apply to all jobs in the workflow.


Suggested fixes powered by Copilot Autofix. Review carefully before merging.

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@wozjac wozjac marked this pull request as ready for review June 11, 2025 20:44
@wozjac wozjac merged commit 8353692 into main Jun 11, 2025
6 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