Skip to content

Potential fix for code scanning alert no. 12: Workflow does not contain permissions#118

Merged
aserto-bot merged 1 commit intomainfrom
alert-autofix-12
Dec 7, 2025
Merged

Potential fix for code scanning alert no. 12: Workflow does not contain permissions#118
aserto-bot merged 1 commit intomainfrom
alert-autofix-12

Conversation

@gertd
Copy link
Copy Markdown
Member

@gertd gertd commented Dec 7, 2025

Potential fix for https://github.com/aserto-dev/topaz-console/security/code-scanning/12

The best way to fix this issue is to explicitly set the minimal permissions necessary for the workflow. Since none of the jobs require write access or interact with GitHub to create issues, pull requests, or update content, the minimal necessary permission is contents: read. This should be added near the top of the file (root level, directly under or after the name: field and before env: or on:), so it applies to all jobs in the workflow. If any job requires more permissions later, those can be set explicitly per-job.

No other code or structure in the file needs to be changed, and no new dependencies are required.


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

…in permissions

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 30.44%. Comparing base (96267ce) to head (ba33121).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #118   +/-   ##
=======================================
  Coverage   30.44%   30.44%           
=======================================
  Files         310      310           
  Lines       12606    12606           
  Branches      679      678    -1     
=======================================
  Hits         3838     3838           
  Misses       8567     8567           
  Partials      201      201           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@gertd gertd marked this pull request as ready for review December 7, 2025 10:34
@aserto-bot aserto-bot merged commit ad0ee4d into main Dec 7, 2025
7 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.

3 participants