Skip to content

Update stale.yml with permissions and action version#1100

Open
Alb4don wants to merge 4 commits intodeepseek-ai:mainfrom
Alb4don:main
Open

Update stale.yml with permissions and action version#1100
Alb4don wants to merge 4 commits intodeepseek-ai:mainfrom
Alb4don:main

Conversation

@Alb4don
Copy link
Copy Markdown

@Alb4don Alb4don commented Feb 2, 2026

  • My primary change restricts the GITHUB_TOKEN scope. Previously, the workflow operated with default permissions, which often grants broad read/write access to the repository. I have explicitly defined a permissions block to enforce the principle of least privilege, limiting the token solely to issues: write and contents: read. This ensures that even if the workflow execution were compromised, the blast radius is contained, preventing unauthorized code modification.
  • I replaced the tag with the specific SHA checksum (28ca10...) for actions/obsolete in order to guarantee execution integrity, ensuring that the code we execute today is cryptographically identical to the code I verified.
  • And finally, I updated the logic for closing inactive issues. I added vulnerability and security advisory to the list of exemptions, which helps prevent inadvertently closing critical security disclosures that may require longer remediation timelines than standard bugs.

Added permissions for reading contents and writing issues and pull requests. Updated stale action version and added exempt labels for stale issues.
-  I implemented static application security testing (SAST) using bandit. This configuration specifically targets Python centric attack vectors, monitoring for unsafe deserialization patterns such as unverified pickle loading and dangerous dynamic execution calls like exec or eval. I tuned the analyzer to exclude standard assertion checks (B101).

Simultaneously, I introduced Software Composition Analysis (SCA) through pip auditing. This helps validate the repository's dependency tree against the Open Source Vulnerabilities (OSV) database, preventing the introduction of libraries with known CVEs into the environment.

I also fixed action references to their immutable SHA checksums, aiming to mitigate the risk of supply chain compromise through mutable upstream tags.
Fix syntax error in stale.yml and update Zen AI Pentest action version.
Removed Zen AI Pentest action from stale.yml.
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