Skip to content

Potential fix for code scanning alert no. 17591: Workflow does not contain permissions - #622

Merged
totoprayogo1916 merged 1 commit into
4.5.xfrom
alert-autofix-17591
Oct 29, 2025
Merged

totoprayogo1916 merged 1 commit into
4.5.xfrom
alert-autofix-17591

Conversation

@totoprayogo1916

Copy link
Copy Markdown
Contributor

Potential fix for https://github.com/ataslangit/sistem-informasi-desa/security/code-scanning/17591

To fix this problem, you should specify a permissions block with the least privileges required for your job. Since your workflow is creating a release draft and uploading an artifact, it needs write access to repository contents. Add this block either at the top level (applies to all jobs) or under the specific job (in this case, only one job exists). The best way is to add

permissions:
  contents: write

at the workflow root (just after the name/on blocks but before jobs). Alternatively, if you expect to add other jobs later with different permissions, you could add it inside the build: job block.

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

…ntain permissions

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@totoprayogo1916
totoprayogo1916 marked this pull request as ready for review October 29, 2025 12:17
@totoprayogo1916
totoprayogo1916 merged commit 2dc79c8 into 4.5.x Oct 29, 2025
5 checks passed
@totoprayogo1916
totoprayogo1916 deleted the alert-autofix-17591 branch October 29, 2025 12:19
@totoprayogo1916 totoprayogo1916 added abaikan-rilis Abaikan pada rilis info github_actions Pull requests that update GitHub Actions code labels Oct 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

abaikan-rilis Abaikan pada rilis info github_actions Pull requests that update GitHub Actions code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant