Skip to content

Potential fix for code scanning alert no. 2: Workflow does not contain permissions#69

Merged
Mustard2 merged 1 commit into
mainfrom
ci-fixes
Jun 9, 2026
Merged

Potential fix for code scanning alert no. 2: Workflow does not contain permissions#69
Mustard2 merged 1 commit into
mainfrom
ci-fixes

Conversation

@cl3m3c7

@cl3m3c7 cl3m3c7 commented Jun 8, 2026

Copy link
Copy Markdown
Collaborator

Potential fix for https://github.com/Mustard2/MustardSimplify/security/code-scanning/2

Add an explicit top-level permissions block in .github/workflows/workflows.yml so all jobs inherit least-privilege defaults unless overridden.
Best single fix without changing functionality: set minimal read-only permissions for common CI behavior:

  • contents: read (needed by checkout and source access)
  • packages: read (safe baseline for package reads/caches)

Place this block right after the workflow trigger section (on: ...) and before jobs: so it applies globally to both lint and blender.

No imports, methods, or definitions are needed (YAML config-only change).

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>
@cl3m3c7 cl3m3c7 marked this pull request as ready for review June 8, 2026 22:11
@Mustard2

Mustard2 commented Jun 9, 2026

Copy link
Copy Markdown
Owner

Can this be put in the common workflow repo or is it repo-specific?

@Mustard2 Mustard2 assigned Mustard2 and cl3m3c7 and unassigned Mustard2 Jun 9, 2026
@Mustard2 Mustard2 self-requested a review June 9, 2026 19:12
@Mustard2 Mustard2 merged commit d6ba639 into main Jun 9, 2026
7 checks passed
@Mustard2 Mustard2 deleted the ci-fixes branch June 9, 2026 19:40
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