Skip to content

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

Merged
angelancajas34-beep merged 1 commit into
dependabot/uv/setuptools-83.0.0from
alert-autofix-11
Aug 30, 2026
Merged

angelancajas34-beep merged 1 commit into
dependabot/uv/setuptools-83.0.0from
alert-autofix-11

Conversation

@angelancajas34-beep

Copy link
Copy Markdown
Owner

Potential fix for https://github.com/angelancajas34-beep/Python-x-Docker/security/code-scanning/11

Add an explicit top-level permissions block in .github/workflows/ci.yml so all jobs get least-privilege defaults, then grant only what this workflow needs.
Best single fix here (without changing behavior) is:

  • Add at workflow root:
    • contents: read (minimal default for most jobs and checkout)
    • packages: write (needed for image publishing to GHCR in docker job)
  • Add job-level override for create_release:
    • contents: write (needed to create/draft GitHub releases)

This preserves current functionality while tightening token scope everywhere else.

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>
@angelancajas34-beep
angelancajas34-beep marked this pull request as ready for review August 30, 2026 07:56
@angelancajas34-beep angelancajas34-beep self-assigned this Aug 30, 2026
@angelancajas34-beep angelancajas34-beep added the python:uv Pull requests that update python:uv code label Aug 30, 2026
@angelancajas34-beep angelancajas34-beep moved this from Todo to In Progress in Docker-Setup-Buildx Aug 30, 2026
@angelancajas34-beep
angelancajas34-beep merged commit d058213 into dependabot/uv/setuptools-83.0.0 Aug 30, 2026
15 checks passed
@angelancajas34-beep
angelancajas34-beep deleted the alert-autofix-11 branch August 30, 2026 18:34
@github-project-automation github-project-automation Bot moved this from In Progress to Done in Docker-Setup-Buildx Aug 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

python:uv Pull requests that update python:uv code

Projects

Development

Successfully merging this pull request may close these issues.

1 participant