Skip to content

Potential fix for code scanning alert no. 203: Workflow does not contain permissions#245

Merged
projectedanx merged 1 commit into
masterfrom
alert-autofix-203
Jul 6, 2026
Merged

Potential fix for code scanning alert no. 203: Workflow does not contain permissions#245
projectedanx merged 1 commit into
masterfrom
alert-autofix-203

Conversation

@projectedanx

Copy link
Copy Markdown
Owner

Potential fix for https://github.com/projectedanx/YOURLS/security/code-scanning/203

Add an explicit top-level permissions block to .github/workflows/The-Asynchronous-State-Passer.yml so all jobs inherit least-privilege defaults.
Best single fix (without changing behavior): set workflow-level permissions to only what this workflow needs:

  • contents: read (safe baseline for checkout/read access if needed)
  • actions: read (allows use of actions metadata)
  • artifacts: write (required because this workflow uploads artifacts in multiple jobs)

Place this block near the top of the workflow, directly after name: and before on:. No imports/dependencies/methods are needed.

Suggested fixes powered by Copilot Autofix. Review carefully before merging.

…ain permissions

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Signed-off-by: Daniel Hart | ALifeInArtifyAI <238904666+projectedanx@users.noreply.github.com>
@gemini-code-assist

Copy link
Copy Markdown

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

@projectedanx projectedanx marked this pull request as ready for review July 6, 2026 14:46
@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@projectedanx projectedanx merged commit 6950eb5 into master Jul 6, 2026
11 of 12 checks passed
@projectedanx projectedanx deleted the alert-autofix-203 branch July 6, 2026 14:47
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