Skip to content

Commit f5c14b5

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). Actions left as tags: 0
1 parent 7a80a4e commit f5c14b5

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

.github/workflows/auto-merge.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ jobs:
88
runs-on: ubuntu-latest
99
if: github.actor == 'dependabot[bot]'
1010
steps:
11-
- uses: actions/checkout@v2
11+
- uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2
1212
with:
1313
ref: ${{ github.event.pull_request.head.sha }}
14-
- uses: ahmadnassri/action-dependabot-auto-merge@v2
14+
- uses: ahmadnassri/action-dependabot-auto-merge@45fc124d949b19b6b8bf6645b6c9d55f4f9ac61a # v2
1515
with:
1616
target: major
1717
github-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/comment_issue.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Check GitHub Issue type
1919
if: env.JIRA_CREATE_COMMENT_AUTO == 'true'
2020
id: github_issue_type
21-
uses: actions/github-script@v2.0.0
21+
uses: actions/github-script@6e5ee1dc1cb3740e5e5e76ad668e3f526edbfe45 # v2.0.0
2222
with:
2323
result-encoding: string
2424
script: |
@@ -33,7 +33,7 @@ jobs:
3333
- name: Check if GitHub Issue has JIRA_ISSUE_LABEL
3434
if: env.JIRA_CREATE_COMMENT_AUTO == 'true'
3535
id: github_issue_has_jira_issue_label
36-
uses: actions/github-script@v2.0.0
36+
uses: actions/github-script@6e5ee1dc1cb3740e5e5e76ad668e3f526edbfe45 # v2.0.0
3737
env:
3838
JIRA_ISSUE_LABEL: ${{ secrets.JIRA_ISSUE_LABEL }}
3939
with:
@@ -56,7 +56,7 @@ jobs:
5656
- name: Jira Login
5757
if: env.JIRA_CREATE_COMMENT_AUTO == 'true' && env.GITHUB_ISSUE_TYPE == 'issue' && env.GITHUB_ISSUE_HAS_JIRA_ISSUE_LABEL == 'true'
5858
id: login
59-
uses: atlassian/gajira-login@v2.0.0
59+
uses: atlassian/gajira-login@90a599561baaf8c05b080645ed73db7391c246ed # v2.0.0
6060
env:
6161
GITHUB_ISSUE_TYPE: ${{ steps.github_issue_type.outputs.result }}
6262
GITHUB_ISSUE_HAS_JIRA_ISSUE_LABEL: ${{ steps.github_issue_has_jira_issue_label.outputs.result }}
@@ -67,7 +67,7 @@ jobs:
6767
- name: Extract Jira number
6868
if: env.JIRA_CREATE_COMMENT_AUTO == 'true' && env.GITHUB_ISSUE_TYPE == 'issue' && env.GITHUB_ISSUE_HAS_JIRA_ISSUE_LABEL == 'true'
6969
id: extract_jira_number
70-
uses: actions/github-script@v2.0.0
70+
uses: actions/github-script@6e5ee1dc1cb3740e5e5e76ad668e3f526edbfe45 # v2.0.0
7171
env:
7272
GITHUB_ISSUE_TYPE: ${{ steps.github_issue_type.outputs.result }}
7373
GITHUB_ISSUE_HAS_JIRA_ISSUE_LABEL: ${{ steps.github_issue_has_jira_issue_label.outputs.result }}
@@ -82,7 +82,7 @@ jobs:
8282
- name: Jira Add comment on issue
8383
if: env.JIRA_CREATE_COMMENT_AUTO == 'true' && env.GITHUB_ISSUE_TYPE == 'issue' && env.GITHUB_ISSUE_HAS_JIRA_ISSUE_LABEL == 'true'
8484
id: add_comment_jira_issue
85-
uses: atlassian/gajira-comment@v2.0.2
85+
uses: atlassian/gajira-comment@8ec356b5df49f1325653db7ee2da2b59a1d78203 # v2.0.2
8686
env:
8787
GITHUB_ISSUE_TYPE: ${{ steps.github_issue_type.outputs.result }}
8888
GITHUB_ISSUE_HAS_JIRA_ISSUE_LABEL: ${{ steps.github_issue_has_jira_issue_label.outputs.result }}

.github/workflows/create_issue.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Jira Login
1919
if: env.JIRA_CREATE_ISSUE_AUTO == 'true'
2020
id: login
21-
uses: atlassian/gajira-login@v2.0.0
21+
uses: atlassian/gajira-login@90a599561baaf8c05b080645ed73db7391c246ed # v2.0.0
2222
env:
2323
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }}
2424
JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }}
@@ -27,7 +27,7 @@ jobs:
2727
- name: Jira Create issue
2828
if: env.JIRA_CREATE_ISSUE_AUTO == 'true'
2929
id: create_jira_issue
30-
uses: atlassian/gajira-create@v2.0.1
30+
uses: atlassian/gajira-create@c0a9c69ac9d6aa063fed57201e55336ada860183 # v2.0.1
3131
with:
3232
project: ${{ secrets.JIRA_PROJECT }}
3333
issuetype: ${{ secrets.JIRA_ISSUE_TYPE }}
@@ -53,7 +53,7 @@ jobs:
5353
5454
- name: Update GitHub issue
5555
if: env.JIRA_CREATE_ISSUE_AUTO == 'true'
56-
uses: actions/github-script@v2.0.0
56+
uses: actions/github-script@6e5ee1dc1cb3740e5e5e76ad668e3f526edbfe45 # v2.0.0
5757
env:
5858
JIRA_ISSUE_NUMBER: ${{ steps.create_jira_issue.outputs.issue }}
5959
GITHUB_ORIGINAL_TITLE: ${{ github.event.issue.title }}
@@ -78,7 +78,7 @@ jobs:
7878
7979
- name: Add comment after sync
8080
if: env.JIRA_CREATE_ISSUE_AUTO == 'true'
81-
uses: actions/github-script@v2.0.0
81+
uses: actions/github-script@6e5ee1dc1cb3740e5e5e76ad668e3f526edbfe45 # v2.0.0
8282
with:
8383
github-token: ${{secrets.GITHUB_TOKEN}}
8484
script: |

.github/workflows/create_issue_on_label.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Jira Login
1919
if: github.event.label.name == env.JIRA_ISSUE_LABEL
2020
id: login
21-
uses: atlassian/gajira-login@v2.0.0
21+
uses: atlassian/gajira-login@90a599561baaf8c05b080645ed73db7391c246ed # v2.0.0
2222
env:
2323
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }}
2424
JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }}
@@ -27,7 +27,7 @@ jobs:
2727
- name: Jira Create issue
2828
if: github.event.label.name == env.JIRA_ISSUE_LABEL
2929
id: create_jira_issue
30-
uses: atlassian/gajira-create@v2.0.1
30+
uses: atlassian/gajira-create@c0a9c69ac9d6aa063fed57201e55336ada860183 # v2.0.1
3131
with:
3232
project: ${{ secrets.JIRA_PROJECT }}
3333
issuetype: ${{ secrets.JIRA_ISSUE_TYPE }}
@@ -53,7 +53,7 @@ jobs:
5353
5454
- name: Change Title
5555
if: github.event.label.name == env.JIRA_ISSUE_LABEL
56-
uses: actions/github-script@v2.0.0
56+
uses: actions/github-script@6e5ee1dc1cb3740e5e5e76ad668e3f526edbfe45 # v2.0.0
5757
env:
5858
JIRA_ISSUE_NUMBER: ${{ steps.create_jira_issue.outputs.issue }}
5959
GITHUB_ORIGINAL_TITLE: ${{ github.event.issue.title }}
@@ -70,7 +70,7 @@ jobs:
7070
7171
- name: Add comment after sync
7272
if: github.event.label.name == env.JIRA_ISSUE_LABEL
73-
uses: actions/github-script@v2.0.0
73+
uses: actions/github-script@6e5ee1dc1cb3740e5e5e76ad668e3f526edbfe45 # v2.0.0
7474
with:
7575
github-token: ${{secrets.GITHUB_TOKEN}}
7676
script: |

0 commit comments

Comments
 (0)