Skip to content

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

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
Jul 10, 2025

Conversation

dongsupark
Copy link
Member

Potential fix for https://github.com/flatcar/update_engine/security/code-scanning/1

To fix the issue, we will add a permissions block at the root level of the workflow file. Since the workflow only needs to read the repository contents to perform the build and tests, we will set contents: read. This ensures that the GITHUB_TOKEN has the least privilege required for the workflow to function correctly.


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>
@dongsupark dongsupark merged commit bf4a50f into main Jul 10, 2025
4 checks passed
@dongsupark dongsupark deleted the github-actions-ci-permission branch July 10, 2025 12:37
dongsupark added a commit to flatcar/scripts that referenced this pull request Jul 10, 2025
dongsupark added a commit to flatcar/scripts that referenced this pull request Jul 16, 2025
Bump coreos-base/update_engine to 2025-07-10.

Pulls in flatcar/update_engine#44,
flatcar/update_engine#45,
flatcar/update_engine#46.

Signed-off-by: Dongsu Park <dongsu@dpark.io>
dongsupark added a commit to flatcar/scripts that referenced this pull request Jul 16, 2025
Bump coreos-base/update_engine to 2025-07-10.

Pulls in flatcar/update_engine#44,
flatcar/update_engine#45,
flatcar/update_engine#46.

Signed-off-by: Dongsu Park <dongsu@dpark.io>
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