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/9

To fix the issue, we need to add a permissions block to the workflow. This block should specify the least privileges required for the jobs. For this workflow:

  • The build job primarily uses actions/checkout and actions/upload-artifact, which require contents: read.
  • The testcmd job uses actions/download-artifact, which also requires contents: read.

The permissions block can be added at the root level of the workflow to apply to all jobs, or it can be added individually to each job. In this case, adding it at the root level is more concise and ensures consistency across jobs.

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 10, 2025 10:40
@baev baev merged commit b7d3ef3 into main Jul 10, 2025
18 of 19 checks passed
@baev baev deleted the alert-autofix-9 branch July 10, 2025 12:12
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