You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
echo "::notice title=Security Reminder::tj-actions/changed-files@v47 has had supply chain security incidents. Consider replacing with dorny/paths-filter@v4 or native git diff commands."
114
+
echo "::notice title=Security Reminder::tj-actions/changed-files@v47 had supply chain security incidents in March 2025. Consider replacing with dorny/paths-filter@v4 or native 'git diff --name-only'."
echo "::warning::peter-evans/create-or-update-comment did not return a comment-id. Check if this is a fork PR (GITHUB_TOKEN may lack write permission)."
219
+
echo "Outcome: ${{ steps.comment.outcome }}"
175
220
221
+
# ─── Job 5: push 事件触发的文档化 (workflow 修改时自动运行) ───
176
222
documentation:
177
223
name: actions-validation-documentation
178
224
runs-on: linux-amd64-cpu-4-hk
179
-
if: github.event_name == 'workflow_dispatch'
225
+
if: github.event_name != 'pull_request'
180
226
181
227
steps:
182
228
- name: Print validation documentation
@@ -188,23 +234,21 @@ jobs:
188
234
189
235
The following actions require a PR/issue context and **cannot be validated** via \`workflow_dispatch\`:
190
236
191
-
| Action | Context | Validation Method |
192
-
|--------|---------|-------------------|
237
+
| Action | Context | How to Validate |
238
+
|--------|---------|-----------------|
193
239
| \`peter-evans/create-or-update-comment@v5\` | PR/Issue | Trigger via PR event |
194
240
| \`peter-evans/slash-command-dispatch@v5\` | Issue Comment | Use slash command in PR |
195
241
| \`actions/stale@v10\` | Issue/PR | Schedule or manual trigger |
196
242
| \`actions/labeler@v6\` | PR | Trigger via PR event |
197
243
| \`github/issue-labeler@v3.4\` | Issue | Trigger via issue event |
198
244
| \`eps1lon/actions-label-merge-conflict@v3\` | PR | Trigger via PR event |
199
245
200
-
**Recommended**: Create a test PR with the \`pull_request\` trigger to validate these actions.
201
-
202
246
## Actions with Security Concerns
203
247
204
248
| Action | Concern | Recommendation |
205
249
|--------|---------|----------------|
206
-
| \`tj-actions/changed-files@v47\` | Past supply chain security incidents | Replace with \`dorny/paths-filter@v4\` or native \`git diff\` |
207
-
| \`jlumbroso/free-disk-space\` | Destructive on self-hosted runners (removes system packages) | **Remove entirely** from self-hosted workflows |
250
+
| \`tj-actions/changed-files@v47\` | Past supply chain security incidents (March 2025) | Replace with \`dorny/paths-filter@v4\` or native \`git diff --name-only\` |
251
+
| \`jlumbroso/free-disk-space\` | Destructive on self-hosted (removes system packages) | **Remove entirely** from self-hosted workflows |
208
252
209
253
## Actions Requiring Special Credentials
210
254
@@ -214,4 +258,45 @@ jobs:
214
258
| \`docker/login-action@v4\` (to Quay) | Quay username/password | Must be configured in repo/organization secrets |
215
259
`;
216
260
console.log(summary);
217
-
return summary;
261
+
return summary;
262
+
263
+
- name: Write summary to step summary
264
+
run: |
265
+
echo "## Actions Requiring Special Context" >> $GITHUB_STEP_SUMMARY
266
+
echo "" >> $GITHUB_STEP_SUMMARY
267
+
echo "The following actions require PR/issue context and can only be validated by creating a test PR:" >> $GITHUB_STEP_SUMMARY
0 commit comments