Skip to content
This repository was archived by the owner on Jun 26, 2025. It is now read-only.

Comments

Potential fix for code scanning alert no. 1: Workflow does not contain permissions#6

Merged
alexsigaras merged 1 commit intomainfrom
develop
Jun 11, 2025
Merged

Potential fix for code scanning alert no. 1: Workflow does not contain permissions#6
alexsigaras merged 1 commit intomainfrom
develop

Conversation

@alexsigaras
Copy link
Member

Potential fix for https://github.com/eipm/beacon/security/code-scanning/1

To fix the issue, we will add a permissions block at the root of the workflow file. This block will define the minimal permissions required for the workflow to function correctly. Based on the workflow's operations (e.g., pushing Docker images to registries), the contents: read permission is sufficient for most steps, while additional permissions (if any) can be added as needed. For this workflow, no write permissions are explicitly required for GitHub resources, so we will start with contents: read.


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>
@alexsigaras alexsigaras requested a review from Copilot June 11, 2025 15:50
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR addresses the code scanning alert by adding a minimal permissions block to the Docker publish workflow.

  • Adds a permissions block with "contents: read" to the workflow
  • Ensures that the Docker publish event complies with GitHub's security requirements

@alexsigaras alexsigaras self-assigned this Jun 11, 2025
@alexsigaras alexsigaras marked this pull request as ready for review June 11, 2025 15:52
@alexsigaras alexsigaras merged commit 6e4ef20 into main Jun 11, 2025
4 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant