Skip to content

Potential fix for code scanning alert no. 2: Workflow does not contain permissions - #15

Merged
cwhite911 merged 1 commit into
mainfrom
alert-autofix-2
Jul 25, 2026
Merged

Potential fix for code scanning alert no. 2: Workflow does not contain permissions#15
cwhite911 merged 1 commit into
mainfrom
alert-autofix-2

Conversation

@cwhite911

Copy link
Copy Markdown
Member

Potential fix for https://github.com/OpenPlainsInc/actinia_openapi_python_client/security/code-scanning/2

Add an explicit permissions block at the workflow root in .github/workflows/python.yml, just after the on trigger (or before jobs).
For this workflow’s current behavior, the minimal and appropriate permission is:

  • contents: read

This applies to all jobs in the workflow and does not change functionality (checkout and read-only CI tasks continue to work). No imports, methods, or dependencies are needed; this is a YAML-only edit.

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>
@cwhite911
cwhite911 marked this pull request as ready for review July 25, 2026 02:12
@cwhite911
cwhite911 merged commit e110148 into main Jul 25, 2026
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.

1 participant