Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/workflows/new_issue_label.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Auto Label New Issues

on:
issues:
types: [opened]

jobs:
label-issue:
runs-on: ubuntu-latest
permissions:
issues: write

steps:
- name: Auto Label
uses: dataquest-dev/gh-actions/start@main

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Pin the action to a specific commit SHA for security and stability.

Using @main references the latest version of the action, which poses security and stability risks:

  • Security risk: If the action repository is compromised, malicious code could execute in your workflow.
  • Stability risk: Breaking changes to the action will immediately affect this workflow without warning.

Pin to a specific commit SHA to ensure reproducible and secure builds.

🔒 Proposed fix to pin the action reference
-        uses: dataquest-dev/gh-actions/start@main
+        uses: dataquest-dev/gh-actions/start@<commit-sha>

Replace <commit-sha> with the full commit hash of the version you want to use. You can find this by visiting the repository and copying the commit SHA from the desired version.

🧰 Tools
🪛 zizmor (1.25.2)

[error] 15-15: unpinned action reference (unpinned-uses): action is not pinned to a hash (required by blanket policy)

(unpinned-uses)

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.github/workflows/new_issue_label.yml at line 15, The action reference
dataquest-dev/gh-actions/start@main is using a branch reference (`@main`) instead
of a pinned commit SHA, which creates security and stability risks. Replace
`@main` with a specific commit SHA from the action repository to pin the action to
a known immutable version. Find the desired version in the
dataquest-dev/gh-actions repository, copy its full commit hash, and update the
uses field to reference that commit SHA instead of the branch.

Source: Linters/SAST tools


with:
github-token: ${{ secrets.GITHUB_TOKEN }}
Loading