Skip to content

Conversation

@joris974
Copy link
Member

Potential fix for https://github.com/freckle/stack-action/security/code-scanning/15

To fix the issue, we will add a permissions block at the root level of the workflow to apply minimal permissions to all jobs. Based on the workflow's operations, the contents: read permission is sufficient for most jobs. If any job requires additional permissions, we will define a specific permissions block for that job.

  1. Add a permissions block at the root level of the workflow with contents: read.
  2. Review each job to determine if additional permissions are required. For example:
    • Jobs interacting with pull requests or issues might need pull-requests: write or issues: write.
    • Jobs downloading or uploading artifacts might need actions: read or actions: write.

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>
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.

2 participants