Skip to content

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

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

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

Conversation

@wozjac

@wozjac wozjac commented Jun 11, 2025

Copy link
Copy Markdown
Owner

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

To fix the issue, we will add a permissions block at the root of the workflow file. This block will define the minimal permissions required for the workflow to function correctly. Based on the steps in the workflow, the following permissions are needed:

  • contents: read for accessing the repository's contents (e.g., during the checkout step).
  • packages: write for publishing the release artifact using softprops/action-gh-release.

The permissions block will be added at the root level, applying 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:41
@wozjac wozjac merged commit 15e59ab 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