Skip to content

Commit c545df4

Browse files
authored
Merge pull request #20912 from calixteman/fix_zizmor_failures
Fix the error in gh actions found by zizmor
2 parents b1172bb + b6634dd commit c545df4

12 files changed

Lines changed: 47 additions & 30 deletions

.github/dependabot.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ updates:
66
interval: "weekly"
77
labels:
88
- "dependencies"
9+
cooldown:
10+
default-days: 7

.github/workflows/ci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,13 @@ jobs:
1515

1616
steps:
1717
- name: Checkout repository
18-
uses: actions/checkout@v6
18+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
1919
with:
2020
fetch-depth: 0
21+
persist-credentials: false
2122

2223
- name: Use Node.js ${{ matrix.node-version }}
23-
uses: actions/setup-node@v6
24+
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
2425
with:
2526
node-version: ${{ matrix.node-version }}
2627

.github/workflows/codeql.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,19 @@ jobs:
1818

1919
steps:
2020
- name: Checkout repository
21-
uses: actions/checkout@v6
21+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
2222
with:
2323
fetch-depth: 0
24+
persist-credentials: false
2425

2526
- name: Initialize CodeQL
26-
uses: github/codeql-action/init@v4
27+
uses: github/codeql-action/init@b1bff81932f5cdfc8695c7752dcee935dcd061c8 # v4
2728
with:
2829
languages: ${{ matrix.language }}
2930
queries: security-and-quality
3031

3132
- name: Autobuild CodeQL
32-
uses: github/codeql-action/autobuild@v4
33+
uses: github/codeql-action/autobuild@b1bff81932f5cdfc8695c7752dcee935dcd061c8 # v4
3334

3435
- name: Perform CodeQL analysis
35-
uses: github/codeql-action/analyze@v4
36+
uses: github/codeql-action/analyze@b1bff81932f5cdfc8695c7752dcee935dcd061c8 # v4

.github/workflows/coverage.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ jobs:
77
test:
88
name: Test
99
runs-on: ubuntu-latest
10+
environment: code-coverage
1011

1112
strategy:
1213
fail-fast: false
@@ -15,12 +16,13 @@ jobs:
1516

1617
steps:
1718
- name: Checkout repository
18-
uses: actions/checkout@v6
19+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
1920
with:
2021
fetch-depth: 0
22+
persist-credentials: false
2123

2224
- name: Use Node.js ${{ matrix.node-version }}
23-
uses: actions/setup-node@v6
25+
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
2426
with:
2527
node-version: ${{ matrix.node-version }}
2628

@@ -31,7 +33,7 @@ jobs:
3133
run: npx gulp unittestcli --coverage
3234

3335
- name: Upload results to Codecov
34-
uses: codecov/codecov-action@v5
36+
uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5
3537
with:
3638
token: ${{ secrets.CODECOV_TOKEN }}
3739
fail_ci_if_error: true

.github/workflows/fluent_linter.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,12 @@ jobs:
2525

2626
steps:
2727
- name: Checkout repository
28-
uses: actions/checkout@v6
28+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
29+
with:
30+
persist-credentials: false
2931

3032
- name: Use Python 3.14
31-
uses: actions/setup-python@v6
33+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
3234
with:
3335
python-version: '3.14'
3436
cache: 'pip'

.github/workflows/font_tests.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,23 +33,25 @@ jobs:
3333
os: [windows-latest, ubuntu-latest]
3434

3535
runs-on: ${{ matrix.os }}
36+
environment: code-coverage
3637

3738
steps:
3839
- name: Checkout repository
39-
uses: actions/checkout@v6
40+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
4041
with:
4142
fetch-depth: 0
43+
persist-credentials: false
4244

4345
- name: Use Node.js ${{ matrix.node-version }}
44-
uses: actions/setup-node@v6
46+
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
4547
with:
4648
node-version: ${{ matrix.node-version }}
4749

4850
- name: Install dependencies
4951
run: npm ci
5052

5153
- name: Use Python 3.14
52-
uses: actions/setup-python@v6
54+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
5355
with:
5456
python-version: '3.14'
5557
cache: 'pip'
@@ -64,11 +66,11 @@ jobs:
6466
run: npx gulp fonttest --headless --coverage --coverage-output build/coverage/font
6567

6668
- name: Upload results to Codecov
67-
uses: codecov/codecov-action@v5
69+
uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5
6870
with:
6971
token: ${{ secrets.CODECOV_TOKEN }}
7072
fail_ci_if_error: true
7173
files: ./build/coverage/font/lcov.info
7274
flags: fonttest
7375
name: codecov-umbrella
74-
verbose: true
76+
verbose: true

.github/workflows/lint.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,13 @@ jobs:
1515

1616
steps:
1717
- name: Checkout repository
18-
uses: actions/checkout@v6
18+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
1919
with:
2020
fetch-depth: 0
21+
persist-credentials: false
2122

2223
- name: Use Node.js ${{ matrix.node-version }}
23-
uses: actions/setup-node@v6
24+
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
2425
with:
2526
node-version: ${{ matrix.node-version }}
2627

.github/workflows/prefs_tests.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,13 @@ jobs:
1515

1616
steps:
1717
- name: Checkout repository
18-
uses: actions/checkout@v6
18+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
1919
with:
2020
fetch-depth: 0
21+
persist-credentials: false
2122

2223
- name: Use Node.js ${{ matrix.node-version }}
23-
uses: actions/setup-node@v6
24+
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
2425
with:
2526
node-version: ${{ matrix.node-version }}
2627

.github/workflows/publish_release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,13 @@ jobs:
1717

1818
steps:
1919
- name: Checkout repository
20-
uses: actions/checkout@v6
20+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
2121
with:
2222
fetch-depth: 0
23+
persist-credentials: false
2324

2425
- name: Use Node.js ${{ matrix.node-version }}
25-
uses: actions/setup-node@v6
26+
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
2627
with:
2728
node-version: ${{ matrix.node-version }}
2829
registry-url: 'https://registry.npmjs.org'

.github/workflows/publish_website.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,13 @@ jobs:
1717

1818
steps:
1919
- name: Checkout repository
20-
uses: actions/checkout@v6
20+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
2121
with:
2222
fetch-depth: 0
23+
persist-credentials: false
2324

2425
- name: Use Node.js ${{ matrix.node-version }}
25-
uses: actions/setup-node@v6
26+
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
2627
with:
2728
node-version: ${{ matrix.node-version }}
2829

@@ -49,7 +50,7 @@ jobs:
4950
INPUT_PATH: build/gh-pages
5051

5152
- name: Upload the website
52-
uses: actions/upload-artifact@v7
53+
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7
5354
with:
5455
name: github-pages
5556
path: ${{ runner.temp }}/website.tar
@@ -66,4 +67,4 @@ jobs:
6667

6768
steps:
6869
- name: Deploy the website
69-
uses: actions/deploy-pages@v4
70+
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4

0 commit comments

Comments
 (0)