Skip to content

Commit 5b47764

Browse files
authored
feat: update workflows to use commit hash (#16026)
1 parent 581d4b8 commit 5b47764

File tree

6 files changed

+17
-17
lines changed

6 files changed

+17
-17
lines changed

Diff for: .github/dependabot.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ updates:
33
- package-ecosystem: "github-actions"
44
directory: "/"
55
schedule:
6-
interval: "monthly"
6+
interval: "weekly"
77

88
- package-ecosystem: "devcontainers"
99
directory: "/"

Diff for: .github/workflows/ci.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@ jobs:
1212
id-token: write # grant additional permission to attestation action to mint the OIDC token permission
1313

1414
steps:
15-
- uses: actions/checkout@v4
15+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1616
with:
1717
fetch-depth: 0
1818

19-
- uses: actions/setup-python@v5
19+
- uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5.5.0
2020
with:
2121
python-version: '3.12'
2222
cache: 'pip'
2323

24-
- uses: actions/setup-node@v4
24+
- uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
2525
with:
2626
node-version: 'lts/*'
2727
cache: 'npm'
@@ -41,7 +41,7 @@ jobs:
4141

4242
- name: Upload test logging
4343
if: github.repository == 'tldr-pages/tldr' && github.event.pull_request.number != ''
44-
uses: actions/upload-artifact@v4
44+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
4545
with:
4646
name: debug.log
4747
path: debug.log
@@ -106,7 +106,7 @@ jobs:
106106
- name: Attest generated files
107107
if: github.repository == 'tldr-pages/tldr' && github.ref == 'refs/heads/main'
108108
id: attest
109-
uses: actions/attest-build-provenance@v2
109+
uses: actions/attest-build-provenance@c074443f1aee8d4aeeae555aebba3282517141b2 # v2.2.3
110110
continue-on-error: true # prevent failing when no pages are modified
111111
with:
112112
subject-path: ${{ env.subject_path }}

Diff for: .github/workflows/codespell.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,19 @@ jobs:
1313
runs-on: ubuntu-latest
1414

1515
steps:
16-
- uses: actions/checkout@v4
16+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1717

1818
- name: Get changed files
1919
id: changed-files
20-
uses: tj-actions/changed-files@v45.0.7
20+
uses: tj-actions/changed-files@823fcebdb31bb35fdf2229d9f769b400309430d0 # v46.0.3
2121
with:
2222
# Ignore all other languages except English
2323
files_ignore: |
2424
pages.*/*/*
2525
contributing-guides/style-guide.*.md
2626
package-lock.json
2727
28-
- uses: codespell-project/actions-codespell@v2
28+
- uses: codespell-project/actions-codespell@406322ec52dd7b488e48c1c4b82e2a8b3a1bf630 # v2.1
2929
with:
3030
ignore_words_file: .github/codespell-ignore
3131
# Exit with 0 regardless of typos.

Diff for: .github/workflows/copy-release-assets.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
id-token: write # grant additional permission to attestation action to mint the OIDC token permission
1818

1919
steps:
20-
- uses: actions/checkout@v4
20+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2121
with:
2222
fetch-depth: 0
2323

@@ -43,7 +43,7 @@ jobs:
4343
- name: Attest copied assets
4444
if: github.repository == 'tldr-pages/tldr'
4545
id: attest
46-
uses: actions/attest-build-provenance@v2
46+
uses: actions/attest-build-provenance@c074443f1aee8d4aeeae555aebba3282517141b2 # v2.2.3
4747
with:
4848
subject-path: ${{ env.subject_path }}
4949

Diff for: .github/workflows/labeler.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ jobs:
1010
labeler:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: tldr-pages/[email protected]
13+
- uses: tldr-pages/tldr-labeler-action@7cb29444b818130fe056b7e7b3dedcc7db93af45 # v0.6.0
1414
with:
1515
token: "${{ secrets.GITHUB_TOKEN }}"

Diff for: .github/workflows/monthly-check.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
key: cache-lychee-${{ github.sha }}
1818
restore-keys: cache-lychee-
1919

20-
- uses: actions/checkout@v4
20+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2121
with:
2222
fetch-depth: 0
2323

@@ -27,7 +27,7 @@ jobs:
2727
sort -u usernames.txt -o usernames.txt
2828
2929
- name: Lychee URL checker
30-
uses: lycheeverse/lychee-action@v2
30+
uses: lycheeverse/lychee-action@f613c4a64e50d792e0b31ec34bbcbba12263c6a6 # v2.3.0
3131
id: lychee
3232
continue-on-error: true
3333
with:
@@ -41,7 +41,7 @@ jobs:
4141
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
4242

4343
- name: Find the last report issue open
44-
uses: micalevisk/last-issue-action@v2
44+
uses: micalevisk/last-issue-action@044e1cb7e9a4dde20e22969cb67818bfca0797be # v2.3.0
4545
id: last-issue
4646
with:
4747
state: open
@@ -51,7 +51,7 @@ jobs:
5151

5252
- name: Update last report open issue created
5353
if: ${{ env.lychee_exit_code != 0 }}
54-
uses: peter-evans/create-issue-from-file@v5
54+
uses: peter-evans/create-issue-from-file@e8ef132d6df98ed982188e460ebb3b5d4ef3a9cd # v5.0.1
5555
with:
5656
title: GitHub usernames with errors
5757
content-filepath: lychee/out.md
@@ -63,7 +63,7 @@ jobs:
6363
run: gh issue close ${{ steps.last-issue.outputs.issue-number }}
6464

6565
- name: Save lychee cache
66-
uses: actions/cache/save@v4
66+
uses: actions/cache/save@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
6767
if: always()
6868
with:
6969
path: .lycheecache

0 commit comments

Comments
 (0)