44 issue_comment :
55 types : [created]
66
7+ permissions :
8+ contents : read
9+
710jobs :
811 check-trigger :
912 name : " Check trigger phrase and eligibility"
1316 outputs :
1417 triggered : ${{ steps.check.outputs.triggered }}
1518 steps :
19+ - name : Harden the runner (Audit all outbound calls)
20+ uses : step-security/harden-runner@5ef0c079ce82195b2a36a210272d6b661572d83e # v2.14.2
21+ with :
22+ egress-policy : audit
23+
1624 - name : " Check for trigger phrase"
1725 id : check
1826 env :
3341 outputs :
3442 repos : ${{ steps.list.outputs.repos }}
3543 steps :
44+ - name : Harden the runner (Audit all outbound calls)
45+ uses : step-security/harden-runner@5ef0c079ce82195b2a36a210272d6b661572d83e # v2.14.2
46+ with :
47+ egress-policy : audit
48+
3649 - name : " List all public repositories in the organization"
3750 id : list
3851 env :
6679 - repo : phpstan/vim-phpstan
6780 - repo : phpstan/.github
6881 steps :
82+ - name : Harden the runner (Audit all outbound calls)
83+ uses : step-security/harden-runner@5ef0c079ce82195b2a36a210272d6b661572d83e # v2.14.2
84+ with :
85+ egress-policy : audit
86+
6987 - name : " Get default branch of target repository"
7088 id : default-branch
7189 env :
7593 echo "branch=$default_branch" >> "$GITHUB_OUTPUT"
7694
7795 - name : " Checkout target repository"
78- uses : actions/checkout@v4
96+ uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
7997 with :
8098 repository : ${{ matrix.repo }}
8199 token : ${{ secrets.PHPSTAN_BOT_TOKEN }}
93111 echo "${delimiter}" >> "$GITHUB_OUTPUT"
94112
95113 - name : " Run Claude Code on repository"
96- uses : anthropics/claude-code-action@v1
114+ uses : anthropics/claude-code-action@35a9e0292d36f1186f5d842b14eb575074e8b450 # v1.0.57
97115 with :
98116 claude_code_oauth_token : ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
99117 claude_args : " --model claude-opus-4-6"
@@ -141,7 +159,7 @@ jobs:
141159
142160 - name : " Upload PR URL artifact"
143161 if : always()
144- uses : actions/upload-artifact@v4
162+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
145163 with :
146164 name : pr-url-${{ steps.repo-name.outputs.sanitized }}
147165 path : /tmp/pr-url.txt
@@ -154,8 +172,13 @@ jobs:
154172 runs-on : ubuntu-latest
155173 timeout-minutes : 5
156174 steps :
175+ - name : Harden the runner (Audit all outbound calls)
176+ uses : step-security/harden-runner@5ef0c079ce82195b2a36a210272d6b661572d83e # v2.14.2
177+ with :
178+ egress-policy : audit
179+
157180 - name : " Download all PR URL artifacts"
158- uses : actions/download-artifact@v4
181+ uses : actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
159182 with :
160183 pattern : pr-url-*
161184 path : pr-urls
0 commit comments