Skip to content

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

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 3 commits into from
May 9, 2025

Conversation

hanseartic
Copy link
Member

Potential fix for https://github.com/otto-de/purge-deprecated-workflow-runs/security/code-scanning/3

To fix the issue, we will add a permissions block to the workflow. Based on the functionality of the otto-de/purge-deprecated-workflow-runs action, the workflow likely only requires contents: read permissions to list and manage workflow runs. We will add this minimal permission at the workflow level to ensure all jobs inherit it unless overridden.


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>
@hanseartic hanseartic marked this pull request as ready for review May 9, 2025 09:29
@hanseartic hanseartic merged commit 1e0fa50 into main May 9, 2025
@hanseartic hanseartic deleted the alert-autofix-3 branch May 9, 2025 09:33
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
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy