Skip to content

Commit afb7b40

Browse files
prisisclaude
andcommitted
ci: fix and standardize github actions workflows
- Fix repository references: change visulima/visulima to anolilab/multi-semantic-release - Add timeout-minutes to all jobs to prevent hanging (10-30 min based on job type) - Standardize step-security/harden-runner to v2.13.2 across all workflows - Standardize github/codeql-action to v3.31.5 - Add proper permissions blocks to delegated workflows - Replace unsafe curl-based actionlint download with taiki-e/install-action - Remove duplicate environment variables from lint.yml Fixes: - Corrects 8 workflows with wrong repository references - Improves security posture with consistent action versions - Prevents job timeouts by setting appropriate limits - Enhances actionlint installation reliability Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
1 parent 8187696 commit afb7b40

17 files changed

Lines changed: 401 additions & 246 deletions

.github/workflows/allo-allo.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,13 @@ on: # yamllint disable-line rule:truthy
1111
- "opened"
1212
- "closed"
1313

14+
permissions:
15+
contents: "read"
16+
1417
jobs:
1518
allo-allo:
16-
uses: "anolilab/workflows/.github/workflows/allo-allo.yml@6f532c500cfe608e2cc5ff59413161b7a1294de7" # main
19+
timeout-minutes: 10
20+
uses: "anolilab/workflows/.github/workflows/allo-allo.yml@main"
1721
with:
18-
target-repo: "anolilab/semantic-release"
22+
target-repo: "anolilab/multi-semantic-release"
1923
onboarding-lead: "prisis"

.github/workflows/cache-clear.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,13 @@ on: # yamllint disable-line rule:truthy
44
pull_request:
55
types:
66
- "closed"
7-
workflow_dispatch: # yamllint disable-line rule:empty-values
7+
8+
permissions:
9+
contents: "read"
810

911
jobs:
1012
cleanup-branch-cache:
11-
uses: "anolilab/workflows/.github/workflows/cleanup-branch-cache.yml@6f532c500cfe608e2cc5ff59413161b7a1294de7" # main
13+
timeout-minutes: 10
14+
uses: "anolilab/workflows/.github/workflows/cleanup-branch-cache.yaml@main"
1215
with:
13-
target-repo: "anolilab/semantic-release"
16+
target-repo: "anolilab/multi-semantic-release"

.github/workflows/codeql.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ permissions:
2626
jobs:
2727
analyze:
2828
name: "Analyze"
29+
timeout-minutes: 30
2930

3031
runs-on: "ubuntu-latest"
3132

@@ -37,22 +38,20 @@ jobs:
3738
strategy:
3839
fail-fast: false
3940
matrix:
40-
language: ["typescript"]
41-
# CodeQL supports [ $supported-codeql-languages ]
42-
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
41+
language: ["javascript-typescript"]
4342

4443
steps:
4544
- name: "Harden Runner"
46-
uses: "step-security/harden-runner@fe104658747b27e96e4f7e80cd0a94068e53901d" # v2.16.1
45+
uses: "step-security/harden-runner@95d9a5deda9de15063e7595e9719c11c38c90ae2" # v2.13.2
4746
with:
4847
egress-policy: "audit"
4948

5049
- name: "Checkout repository"
51-
uses: "actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd" # v6.0.2
50+
uses: "actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5" # v4.3.1
5251

5352
# Initializes the CodeQL tools for scanning.
5453
- name: "Initialize CodeQL"
55-
uses: "github/codeql-action/init@c10b8064de6f491fea524254123dbe5e09572f13" # v4.35.1
54+
uses: "github/codeql-action/init@d3ced5c96c16c4332e2a61eb6f3649d6f1b20bb8" # v3.31.5
5655
with:
5756
languages: "${{ matrix.language }}"
5857
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -62,7 +61,7 @@ jobs:
6261
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
6362
# If this step fails, then you should remove it and run the build manually (see below)
6463
- name: "Autobuild"
65-
uses: "github/codeql-action/autobuild@c10b8064de6f491fea524254123dbe5e09572f13" # v4.35.1
64+
uses: "github/codeql-action/autobuild@d3ced5c96c16c4332e2a61eb6f3649d6f1b20bb8" # v3.31.5
6665

6766
# ℹ️ Command-line programs to run using the OS shell.
6867
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
@@ -75,6 +74,6 @@ jobs:
7574
# ./location_of_script_within_repo/buildscript.sh
7675

7776
- name: "Perform CodeQL Analysis"
78-
uses: "github/codeql-action/analyze@c10b8064de6f491fea524254123dbe5e09572f13" # v4.35.1
77+
uses: "github/codeql-action/analyze@d3ced5c96c16c4332e2a61eb6f3649d6f1b20bb8" # v3.31.5
7978
with:
8079
category: "/language:${{matrix.language}}"

.github/workflows/comment-issue.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,13 @@ permissions:
1111
jobs:
1212
add-comment-for-user-interest:
1313
if: "github.event.label.name == 's: waiting for user interest'"
14+
timeout-minutes: 10
1415
runs-on: "ubuntu-latest"
1516
permissions:
1617
issues: "write"
1718
steps:
1819
- name: "Harden Runner"
19-
uses: "step-security/harden-runner@fe104658747b27e96e4f7e80cd0a94068e53901d" # v2.16.1
20+
uses: "step-security/harden-runner@95d9a5deda9de15063e7595e9719c11c38c90ae2" # v2.13.2
2021
with:
2122
egress-policy: "audit"
2223

.github/workflows/dependency-review.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,20 @@ permissions:
1818

1919
jobs:
2020
dependency-review:
21+
timeout-minutes: 10
2122
runs-on: "ubuntu-latest"
2223
steps:
2324
- name: "Harden Runner"
24-
uses: "step-security/harden-runner@fe104658747b27e96e4f7e80cd0a94068e53901d" # v2.16.1
25+
uses: "step-security/harden-runner@95d9a5deda9de15063e7595e9719c11c38c90ae2" # v2.13.2
2526
with:
2627
egress-policy: "audit"
2728

2829
- name: "Git checkout"
29-
uses: "actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd" # v6.0.2
30+
uses: "actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5" # v4.3.1
3031
env:
3132
GIT_COMMITTER_NAME: "GitHub Actions Shell"
3233
GIT_AUTHOR_NAME: "GitHub Actions Shell"
3334
EMAIL: "github-actions[bot]@users.noreply.github.com"
3435

3536
- name: "Dependency Review"
36-
uses: "actions/dependency-review-action@2031cfc080254a8a887f58cffee85186f0e49e48" # v4.9.0
37+
uses: "actions/dependency-review-action@3c4e3dcb1aa7874d2c16be7d79418e9b7efd6261" # v4.8.2

.github/workflows/labeler.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,18 @@ on: # yamllint disable-line rule:truthy
77

88
jobs:
99
triage:
10+
timeout-minutes: 10
1011
runs-on: "ubuntu-latest"
1112
permissions:
1213
contents: "read"
1314
pull-requests: "write"
1415
steps:
15-
- uses: "actions/labeler@634933edcd8ababfe52f92936142cc22ac488b1b" # v6.0.1
16+
- name: "Harden Runner"
17+
uses: "step-security/harden-runner@95d9a5deda9de15063e7595e9719c11c38c90ae2" # v2.13.2
18+
with:
19+
egress-policy: "audit"
20+
21+
- uses: "actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9" # v5.0.0
1622
with:
1723
repo-token: "${{ secrets.GITHUB_TOKEN }}"
1824
configuration-path: "labeler-config.yml"

0 commit comments

Comments
 (0)