Skip to content

Conversation

@baev
Copy link
Member

@baev baev commented Jul 10, 2025

Potential fix for https://github.com/allure-framework/allure2/security/code-scanning/7

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. Specifically:

  • contents: read is needed for reading repository contents.
  • contents: write is required for uploading release assets to GitHub.

The permissions block will be added at the root level to apply to all jobs in the workflow. This ensures that the GITHUB_TOKEN has only the necessary permissions throughout the workflow.


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>
@baev baev added the type:internal Change that isn't visible or obvious for end users label Jul 10, 2025
@baev baev marked this pull request as ready for review July 11, 2025 09:05
@baev baev merged commit 1e458f9 into main Jul 11, 2025
18 of 19 checks passed
@baev baev deleted the alert-autofix-7 branch July 11, 2025 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

theme:workflow type:internal Change that isn't visible or obvious for end users

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants