File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change 19
19
persist-credentials : false
20
20
21
21
- name : Pin actions
22
+ id : pin-actions
22
23
# Relies on the following actions that need to be allowed in the repo:
23
24
# aquaproj/aqua-installer@e2d0136abcf70b7a2f6f505720640750557c4b33
24
25
# suzuki-shunsuke/commit-action@04e7ae80e6b3c584ba8a4d98ab64474963d854eb
27
28
uses : suzuki-shunsuke/pinact-action@d735505f3decf76fca3fdbb4c952e5b3eba0ffdd # v0.1.2
28
29
with :
29
30
skip_push : true
31
+
32
+ - name : Output pin actions failure message
33
+ if : failure() && steps.pin-actions.outcome == 'failure'
34
+ run : |
35
+ cat >> $GITHUB_STEP_SUMMARY << 'EOF'
36
+ ## ⚠️ Action Pinning Validation Failed
37
+
38
+ This check ensures actions are pinned to a specific commit SHA for security and reliability. This validation did not pass for your workflow.
39
+
40
+ Here's how to resolve this:
41
+
42
+ **1. If you added or modified an action:**
43
+ * Ensure it's pinned to a full commit SHA (e.g., `actions/checkout@a12b34cdef567890...`), not a tag or branch.
44
+ * For new actions or versions, please ping `@agent-integrations` in your pull request to validate and allow-list its usage.
45
+
46
+ **2. If you have *not* changed any actions in this branch:**
47
+ * An allowed action version may have been updated centrally, and your branch is now using an older, unpermitted version.
48
+ * Update your branch with the latest changes from `master` (or your repository's main branch) to get the current allowed actions.
49
+
50
+ If the issue persists after these steps, please contact `@agent-integrations` for assistance.
51
+ EOF
You can’t perform that action at this time.
0 commit comments