Skip to content

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

Merged
raphael-theriault-swi merged 1 commit into
mainfrom
autofix-workflow-permission
Jun 22, 2026
Merged

Potential fix for code scanning alert no. 1: Workflow does not contain permissions#15
raphael-theriault-swi merged 1 commit into
mainfrom
autofix-workflow-permission

Conversation

@raphael-theriault-swi

Copy link
Copy Markdown
Contributor

Potential fix for https://github.com/solarwinds/diet-lambda/security/code-scanning/1

Add an explicit permissions block to the checks job with least privilege required.
For this job, the minimal safe setting is:

  • contents: read

This preserves existing behavior (actions/checkout and cargo checks only need repository read access) and does not alter functionality.

Where to change: .github/workflows/ci.yaml, within jobs.checks, between runs-on and steps (or anywhere valid under that job key).

No imports, methods, or dependency changes are needed.

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

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@raphael-theriault-swi raphael-theriault-swi marked this pull request as ready for review June 22, 2026 20:26
Copilot AI review requested due to automatic review settings June 22, 2026 20:26
@raphael-theriault-swi raphael-theriault-swi requested review from a team as code owners June 22, 2026 20:26

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@raphael-theriault-swi raphael-theriault-swi merged commit aa18b84 into main Jun 22, 2026
9 checks passed
@raphael-theriault-swi raphael-theriault-swi deleted the autofix-workflow-permission branch June 22, 2026 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants