Skip to content

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

Merged
harshach merged 1 commit intomainfrom
alert-autofix-1
Nov 23, 2025
Merged

Potential fix for code scanning alert no. 1: Workflow does not contain permissions#5
harshach merged 1 commit intomainfrom
alert-autofix-1

Conversation

@harshach
Copy link
Contributor

Potential fix for https://github.com/open-metadata/OpenMetadataStandards/security/code-scanning/1

To resolve the issue, add a permissions block limiting the job or workflow's permissions to the minimum required. Since the workflow only checks out code and validates files, it can have just contents: read. This change should be added either at the root of the YAML file (preferred for a single-job workflow, as here) or directly under the validate-schemas job, before runs-on. No additional imports or code changes are needed—the only change is a new YAML block.

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>
@harshach harshach marked this pull request as ready for review November 23, 2025 17:56
@harshach harshach merged commit 00dfb68 into main Nov 23, 2025
4 checks passed
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