Skip to content
Closed
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
17 changes: 17 additions & 0 deletions .github/workflows/add-to-project.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Add to project

on:
issues:
types: [opened]
pull_request_target:
types: [opened]

jobs:
add-to-project:
name: Add to NemoClaw Development Tracker
runs-on: ubuntu-latest
steps:
- uses: actions/add-to-project@v1.0.2
with:
project-url: https://github.com/orgs/NVIDIA/projects/199
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
Comment on lines +14 to +17
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.

⚠️ Potential issue | 🟠 Major

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Verify whether workflow actions are pinned to immutable SHAs.
# Expected: lines use `owner/repo/path@<40-hex-sha>` for third-party actions.
rg -n '^\s*-\s*uses:\s*' .github/workflows | sed 's/^/FOUND: /'

Repository: NVIDIA/NemoClaw

Length of output: 149


🏁 Script executed:

cat -n .github/workflows/add-to-project.yml

Repository: NVIDIA/NemoClaw

Length of output: 568


🏁 Script executed:

# Check all workflows for other version-tagged actions
rg -n '^\s*-\s*uses:\s*\w+/' .github/workflows -A 3 | head -50

Repository: NVIDIA/NemoClaw

Length of output: 401


Pin the third-party action to a commit SHA before using PAT secrets.

actions/add-to-project@v1.0.2 is a mutable tag. Since this step consumes ADD_TO_PROJECT_PAT, pin to an immutable commit SHA to reduce supply-chain risk.

🔒 Suggested hardening patch
-      - uses: actions/add-to-project@v1.0.2
+      - uses: actions/add-to-project@<full_commit_sha>
         with:
           project-url: https://github.com/orgs/NVIDIA/projects/199
           github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In @.github/workflows/add-to-project.yml around lines 14 - 17, Replace the
mutable action tag "actions/add-to-project@v1.0.2" with a specific immutable
commit SHA to prevent supply-chain risk; update the "uses" line to
"actions/add-to-project@<commit-sha>" (use the exact commit SHA from the
action's repository), keep the existing "project-url" and the secret
"ADD_TO_PROJECT_PAT" intact, and verify the chosen SHA corresponds to the
intended release before committing the change.

Loading