Skip to content

Commit cdc301f

Browse files
Merge pull request #9 from codacy/security/pin-actions-to-sha
Security: pin GitHub Actions to SHA hashes
2 parents 811a3e5 + f32ab3d commit cdc301f

File tree

5 files changed

+15
-15
lines changed

5 files changed

+15
-15
lines changed

.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: |

.github/workflows/dependabot_auto_approve.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
steps:
1414
- name: Dependabot metadata
1515
id: metadata
16-
uses: dependabot/fetch-metadata@v1
16+
uses: dependabot/fetch-metadata@8348ea7f5d949b08c7f125a44b569c9626b05db3 # v1
1717
with:
1818
github-token: "${{ secrets.GITHUB_TOKEN }}"
1919
- name: Approve a PR

.github/workflows/dependabot_auto_merge.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
steps:
1515
- name: Dependabot metadata
1616
id: metadata
17-
uses: dependabot/fetch-metadata@v1
17+
uses: dependabot/fetch-metadata@8348ea7f5d949b08c7f125a44b569c9626b05db3 # v1
1818
with:
1919
github-token: "${{ secrets.GITHUB_TOKEN }}"
2020
- name: Enable auto-merge for Dependabot PRs

0 commit comments

Comments
 (0)