Skip to content

Commit f9e1af7

Browse files
author
Codacy Security Bot
committed
Security: pin GitHub Actions to SHA hashes
Replaces mutable tag/branch references with immutable SHA hashes to prevent supply chain attacks (ref: TeamPCP/Trivy March 2026). NOT_FOUND actions left as tags: 0
1 parent 38d6215 commit f9e1af7

File tree

6 files changed

+30
-30
lines changed

6 files changed

+30
-30
lines changed

.github/workflows/deleted-files.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ jobs:
1111
name: Detect deleted files
1212
steps:
1313
- name: Checkout
14-
uses: actions/checkout@v4
14+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
1515

1616
- name: Get changed docs md files
1717
id: changed-files
18-
uses: tj-actions/changed-files@v45
18+
uses: tj-actions/changed-files@48d8f15b2aaa3d255ca5af3eba4870f807ce6b3c # v45
1919
with:
2020
files: docs/**/*.md
2121

@@ -30,7 +30,7 @@ jobs:
3030
3131
- name: Comment PR if there are deleted files
3232
if: steps.changed-files.outputs.any_deleted == 'true'
33-
uses: thollander/actions-comment-pull-request@v2
33+
uses: thollander/actions-comment-pull-request@fabd468d3a1a0b97feee5f6b9e499eab0dd903f6 # v2
3434
with:
3535
message: |
3636
## Remember to add redirects

.github/workflows/jira.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ jobs:
1010
steps:
1111
- name: Jira login
1212
id: login
13-
uses: atlassian/gajira-login@v3.0.1
13+
uses: atlassian/gajira-login@45fd029b9f1d6d8926c6f04175aa80c0e42c9026 # v3.0.1
1414
env:
1515
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }}
1616
JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }}
1717
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}
1818

1919
- name: Create Jira issue
2020
id: create_jira_issue
21-
uses: atlassian/gajira-create@v3
21+
uses: atlassian/gajira-create@1ff0b6bd115a780592b47bfbb63fc4629132e6ec # v3
2222
with:
2323
project: DOCS
2424
issuetype: Bug
@@ -33,7 +33,7 @@ jobs:
3333
fields: '{"customfield_10009": "DOCS-162", "labels": ["Quality"]}'
3434

3535
- name: Update title of GitHub issue
36-
uses: actions/github-script@v7
36+
uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7
3737
env:
3838
JIRA_ISSUE_NUMBER: ${{ steps.create_jira_issue.outputs.issue }}
3939
GITHUB_ORIGINAL_TITLE: ${{ github.event.issue.title }}
@@ -49,7 +49,7 @@ jobs:
4949
})
5050
5151
- name: Add comment to GitHub issue
52-
uses: actions/github-script@v7
52+
uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7
5353
with:
5454
github-token: ${{ secrets.GITHUB_TOKEN }}
5555
script: |

.github/workflows/mkdocs.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout code
13-
uses: actions/checkout@v6
13+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
1414
with:
1515
token: ${{ secrets.DEPLOYMENT_PERSONAL_ACCESS_TOKEN }}
1616
submodules: true
1717
# git-revision-date-localized-plugin and mkdocs-rss-plugin need full git history depth
1818
fetch-depth: 0
1919

2020
- name: Set up Python
21-
uses: actions/setup-python@v5
21+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
2222
with:
2323
python-version: "3.x"
2424
cache: "pip"
@@ -30,7 +30,7 @@ jobs:
3030
- name: Obtain pull request number
3131
id: pull_request
3232
if: github.ref != 'refs/heads/master' && !startsWith(github.ref, 'refs/heads/release/v')
33-
uses: jwalton/gh-find-current-pr@v1
33+
uses: jwalton/gh-find-current-pr@f3d61b485d2801773f7a07b2aaa3306bd8f8e653 # v1
3434

3535
- name: Set up environment variables
3636
if: github.ref != 'refs/heads/master' && !startsWith(github.ref, 'refs/heads/release/v')
@@ -43,7 +43,7 @@ jobs:
4343
mkdocs -v build
4444
4545
- name: Upload meta descriptions artifact
46-
uses: actions/upload-artifact@v4
46+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
4747
with:
4848
name: meta-descriptions
4949
path: ./site/meta-descriptions.csv
@@ -56,13 +56,13 @@ jobs:
5656
- name: Obtain Netlify alias from branch name
5757
id: branch
5858
if: github.ref != 'refs/heads/master' && !startsWith(github.ref, 'refs/heads/release/v')
59-
uses: common-fate/branch-name@v1.1.2
59+
uses: common-fate/branch-name@baca702844ae4e7dfd7bfdfa6a9bd4235bc9f08e # v1.1.2
6060
with:
6161
max-length: 35
6262

6363
- name: Deploy docs (branch preview)
6464
if: github.ref != 'refs/heads/master' && !startsWith(github.ref, 'refs/heads/release/v')
65-
uses: nwtgck/actions-netlify@v3.0
65+
uses: nwtgck/actions-netlify@4cbaf4c08f1a7bfa537d6113472ef4424e4eb654 # v3.0
6666
with:
6767
publish-dir: ./site
6868
production-branch: master
@@ -93,7 +93,7 @@ jobs:
9393
echo -e "User-agent: *\nSitemap: https://${{ env.CUSTOM_DOMAIN }}/sitemap.xml" > "./site/robots.txt"
9494
9595
- name: Deploy docs (Latest)
96-
uses: peaceiris/actions-gh-pages@v4
96+
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4
9797
if: github.ref == 'refs/heads/master'
9898
with:
9999
personal_token: ${{ secrets.DEPLOYMENT_PERSONAL_ACCESS_TOKEN }}
@@ -106,7 +106,7 @@ jobs:
106106

107107
# Deploy Self-hosted docs on push to release/vM.m branch
108108
- name: Set up git author
109-
uses: oleksiyrudenko/gha-git-credentials@v2
109+
uses: oleksiyrudenko/gha-git-credentials@6132cfce45156e2c1562673f9be1a91a575ce879 # v2
110110
if: startsWith(github.ref, 'refs/heads/release/v')
111111
with:
112112
name: ${{ github.actor }}

.github/workflows/readability.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: Checkout repo with history
12-
uses: actions/checkout@v4
12+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
1313
with:
1414
fetch-depth: 0
1515
- uses: Rebilly/lexi@v2

.github/workflows/scheduled.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: Checkout code
12-
uses: actions/checkout@v4
12+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
1313

1414
- name: Check for broken links
1515
id: lychee
16-
uses: lycheeverse/lychee-action@v2
16+
uses: lycheeverse/lychee-action@8646ba30535128ac92d33dfc9133794bfdd9b411 # v2
1717
with:
1818
args: --verbose ./docs/**/*.md ./submodules/chart/docs/**/*.md
1919
jobSummary: true
@@ -22,7 +22,7 @@ jobs:
2222

2323
- name: Create issue
2424
if: env.lychee_exit_code != 0
25-
uses: peter-evans/create-issue-from-file@v5
25+
uses: peter-evans/create-issue-from-file@e8ef132d6df98ed982188e460ebb3b5d4ef3a9cd # v5
2626
with:
2727
title: Broken link report
2828
content-filepath: ./lychee/out.md
@@ -34,10 +34,10 @@ jobs:
3434
OUTPUT_FILE: ${{ github.workspace }}/supported-tools-report.txt
3535
steps:
3636
- name: Checkout code
37-
uses: actions/checkout@v4
37+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
3838

3939
- name: Set up Python
40-
uses: actions/setup-python@v5
40+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
4141
with:
4242
python-version: "3.x"
4343
cache: "pip"
@@ -52,7 +52,7 @@ jobs:
5252
python ./check-supported-tools.py > ${{ env.OUTPUT_FILE }}
5353
5454
- name: Create issue
55-
uses: peter-evans/create-issue-from-file@v5
55+
uses: peter-evans/create-issue-from-file@e8ef132d6df98ed982188e460ebb3b5d4ef3a9cd # v5
5656
if: ${{ failure() }}
5757
with:
5858
title: Missing supported tools report
@@ -65,10 +65,10 @@ jobs:
6565
OUTPUT_FILE: ${{ github.workspace }}/security-tools-report.txt
6666
steps:
6767
- name: Checkout code
68-
uses: actions/checkout@v4
68+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
6969

7070
- name: Set up Python
71-
uses: actions/setup-python@v5
71+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
7272
with:
7373
python-version: "3.x"
7474
cache: "pip"
@@ -83,7 +83,7 @@ jobs:
8383
python ./check-security-tools.py > ${{ env.OUTPUT_FILE }}
8484
8585
- name: Create issue
86-
uses: peter-evans/create-issue-from-file@v5
86+
uses: peter-evans/create-issue-from-file@e8ef132d6df98ed982188e460ebb3b5d4ef3a9cd # v5
8787
if: ${{ failure() }}
8888
with:
8989
title: Missing security tools report
@@ -94,19 +94,19 @@ jobs:
9494
runs-on: ubuntu-latest
9595
steps:
9696
- name: Checkout code
97-
uses: actions/checkout@v4
97+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
9898

9999
- name: Compress images
100100
id: calibre
101-
uses: calibreapp/image-actions@main
101+
uses: calibreapp/image-actions@{message:Not Found # main
102102
with:
103103
githubToken: ${{ secrets.GITHUB_TOKEN }}
104104
ignorePaths: submodules/**
105105
compressOnly: true
106106

107107
- name: Create pull request
108108
if: steps.calibre.outputs.markdown != ''
109-
uses: peter-evans/create-pull-request@v7
109+
uses: peter-evans/create-pull-request@22a9089034f40e5a961c8808d113e2c98fb63676 # v7
110110
with:
111111
title: "clean: Compress images"
112112
branch-suffix: timestamp

.github/workflows/vale.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- name: Checkout code
11-
uses: actions/checkout@v4
11+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
1212
with:
1313
token: ${{ secrets.GITHUB_TOKEN }}
1414
submodules: false
1515

1616
- name: Vale
17-
uses: errata-ai/vale-action@reviewdog
17+
uses: errata-ai/vale-action@{message:Not Found # reviewdog
1818
with:
1919
filter_mode: added
2020
debug: true

0 commit comments

Comments
 (0)