Skip to content

chore: add workflow permissions #111

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 24, 2025
Merged

chore: add workflow permissions #111

merged 1 commit into from
May 24, 2025

Conversation

rmoesbergen
Copy link
Member

Potential fix for https://github.com/djoamersfoort/aanmelden/security/code-scanning/4

To fix the issue, we will add a permissions block at the workflow level to explicitly define the least privileges required. Based on the workflow's operations:

  1. contents: read is sufficient for most steps.
  2. packages: write is required for pushing Docker images to GitHub Packages.
  3. contents: write is required for deleting old package versions.

The permissions block will be added at the root of the workflow to apply to all jobs. This ensures that the workflow adheres to the principle of least privilege.


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>
@rmoesbergen rmoesbergen marked this pull request as ready for review May 24, 2025 07:43
@rmoesbergen rmoesbergen changed the title Potential fix for code scanning alert no. 4: Workflow does not contain permissions chore: add workflow permissions May 24, 2025
@rmoesbergen rmoesbergen merged commit 789ecbe into master May 24, 2025
4 checks passed
@rmoesbergen rmoesbergen deleted the alert-autofix-4 branch May 24, 2025 07:44
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