Skip to content

Potential fix for code scanning alert no. 7: Workflow does not contain permissions#11

Merged
elviscgn merged 1 commit into
mainfrom
alert-autofix-7
Jun 7, 2026
Merged

Potential fix for code scanning alert no. 7: Workflow does not contain permissions#11
elviscgn merged 1 commit into
mainfrom
alert-autofix-7

Conversation

@elviscgn

@elviscgn elviscgn commented Jun 7, 2026

Copy link
Copy Markdown
Member

Potential fix for https://github.com/doria-sec/Doria/security/code-scanning/7

Add an explicit permissions block at the workflow root so it applies to all jobs (currently just build) without changing behavior. The minimal required permission for this workflow is:

  • contents: read (needed for actions/checkout and repository read access)

Edit .github/workflows/rust.yml by inserting permissions: between the on: section and env: (or any top-level location valid for workflow syntax). No imports, methods, or dependencies are needed.

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>
@sonarqubecloud

sonarqubecloud Bot commented Jun 7, 2026

Copy link
Copy Markdown

@elviscgn elviscgn marked this pull request as ready for review June 7, 2026 06:56
@elviscgn elviscgn merged commit d07557b into main Jun 7, 2026
9 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