Skip to content
Open
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
21 changes: 21 additions & 0 deletions .github/workflows/use-pr-linker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Auto link PR to Issues

on:
pull_request_target:
types:
- opened
- edited
- synchronize
- reopened
- closed

permissions:
contents: read
issues: write
pull-requests: read

jobs:
call-linker:
uses: mosip/kattu/.github/workflows/link-pr-to-issue.yml@develop
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 reusable workflow to an immutable commit SHA

.github/workflows/use-pr-linker.yml invokes the reusable workflow with @develop (mutable), which can change without this repo’s review. Pin mosip/kattu/.github/workflows/link-pr-to-issue.yml to a full commit SHA.

Suggested change
-    uses: mosip/kattu/.github/workflows/link-pr-to-issue.yml@develop
+    uses: mosip/kattu/.github/workflows/link-pr-to-issue.yml@<full_commit_sha>
🧰 Tools
🪛 zizmor (1.25.2)

[error] 14-14: 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/use-pr-linker.yml at line 14, The workflow currently
references a mutable branch in the uses string
"mosip/kattu/.github/workflows/link-pr-to-issue.yml@develop"; replace that
branch ref with the repository's immutable full commit SHA (e.g., change the
suffix from `@develop` to @<full-commit-sha>) so the reusable workflow is pinned
to a specific commit and cannot change unexpectedly.

secrets:
ACTION_PAT: ${{ secrets.ACTION_PAT }}
Loading