Skip to content

Commit 899b920

Browse files
committed
Lock all actions to sha commits
1 parent a2cf3a3 commit 899b920

12 files changed

+44
-44
lines changed

.github/workflows/backend_lint_and_test.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ jobs:
1919
runs-on: ubuntu-latest
2020
steps:
2121
- name: Checkout
22-
uses: actions/checkout@v4
22+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #v6
2323

2424
- name: Set up .NET
25-
uses: actions/setup-dotnet@v4
25+
uses: actions/setup-dotnet@vc2fa09f4bde5ebb9d1777cf28262a3eb3db3ced7 #v5
2626
with:
2727
dotnet-version: "10.0.x"
2828
- name: Build project and dependencies
@@ -32,10 +32,10 @@ jobs:
3232
runs-on: ubuntu-latest
3333
steps:
3434
- name: Checkout
35-
uses: actions/checkout@v4
35+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #v6
3636

3737
- name: Set up .NET
38-
uses: actions/setup-dotnet@v4
38+
uses: actions/setup-dotnet@vc2fa09f4bde5ebb9d1777cf28262a3eb3db3ced7 #v5
3939
with:
4040
dotnet-version: "10.0.x"
4141

@@ -48,10 +48,10 @@ jobs:
4848
check_formatting:
4949
runs-on: ubuntu-latest
5050
steps:
51-
- uses: actions/checkout@v4
51+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #v6
5252

5353
- name: Setup .NET Core
54-
uses: actions/setup-dotnet@v4
54+
uses: actions/setup-dotnet@vc2fa09f4bde5ebb9d1777cf28262a3eb3db3ced7 #v5
5555
with:
5656
dotnet-version: "10.0.x"
5757

.github/workflows/frontend_lint_and_test.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ jobs:
2323
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
2424

2525
steps:
26-
- uses: actions/checkout@v4
26+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #v6
2727
- name: Use Node.js ${{ matrix.node-version }}
28-
uses: actions/setup-node@v4
28+
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f #v6
2929
with:
3030
node-version: ${{ matrix.node-version }}
3131
cache: "npm"
@@ -50,7 +50,7 @@ jobs:
5050
working-directory: ./frontend
5151
steps:
5252
- name: Checkout
53-
uses: actions/checkout@v4
53+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #v6
5454

5555
- name: Run Prettier
5656
run: npm run prettier_check
@@ -61,7 +61,7 @@ jobs:
6161
run:
6262
working-directory: ./frontend
6363
steps:
64-
- uses: actions/checkout@v4
64+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #v6
6565
- name: Install modules
6666
run: npm ci
6767
- name: Run ESLint
@@ -73,7 +73,7 @@ jobs:
7373
run:
7474
working-directory: ./frontend
7575
steps:
76-
- uses: actions/checkout@v4
76+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #v6
7777
- name: Install modules
7878
run: npm ci
7979
- name: Run Unused Exports Check

.github/workflows/notifyMigrationChanges.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,18 @@ jobs:
1919
issues: write
2020
steps:
2121
- name: Checkout
22-
uses: actions/checkout@v4
22+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #v6
2323

2424
- name: Check for previous comment
2525
id: notify_comment_search
26-
uses: peter-evans/find-comment@v3
26+
uses: peter-evans/find-comment@b30e6a3c0ed37e7c023ccd3f1db5c6c0b0c23aad #v4
2727
with:
2828
issue-number: ${{ github.event.number }}
2929
body-includes: ${{ env.message }}
3030

3131
- name: Add comment if no comment exists
3232
if: ${{ !steps.notify_comment_search.outputs.comment-body }}
33-
uses: peter-evans/create-or-update-comment@v4
33+
uses: peter-evans/create-or-update-comment@e8674b075228eee787fea43ef493e45ece1004c9 #v5
3434
with:
3535
token: ${{ secrets.GITHUB_TOKEN }}
3636
issue-number: ${{ github.event.number }}

.github/workflows/notifyPossibleMigrationUpdate.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,19 @@ jobs:
2020
issues: write
2121
steps:
2222
- name: Checkout
23-
uses: actions/checkout@v4
23+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #v6
2424

2525
- name: Get changed files in the migrations folder
2626
id: changed_files
27-
uses: tj-actions/changed-files@v46.0.5
27+
uses: tj-actions/changed-files@22103cc46bda19c2b464ffe86db46df6922fd323 #v47
2828
with:
2929
files: backend/api/Migrations/**
3030
sha: ${{ github.event.pull_request.head.sha }}
3131

3232
- name: If no migrations, check for previous comment
3333
if: ${{ steps.changed_files.outputs.any_changed != 'true' }}
3434
id: notify_comment_search
35-
uses: peter-evans/find-comment@v3
35+
uses: peter-evans/find-comment@b30e6a3c0ed37e7c023ccd3f1db5c6c0b0c23aad #v4
3636
with:
3737
issue-number: ${{ github.event.number }}
3838
body-includes: ${{ env.message }}
@@ -41,7 +41,7 @@ jobs:
4141
if: |
4242
!steps.notify_comment_search.outputs.comment-body &&
4343
steps.changed_files.outputs.any_changed != 'true'
44-
uses: peter-evans/create-or-update-comment@v4
44+
uses: peter-evans/create-or-update-comment@e8674b075228eee787fea43ef493e45ece1004c9 #v5
4545
with:
4646
token: ${{ secrets.GITHUB_TOKEN }}
4747
issue-number: ${{ github.event.number }}

.github/workflows/promote_to_production.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
runs-on: ubuntu-latest
3030
steps:
3131
- name: Checkout infrastructure
32-
uses: actions/checkout@v4
32+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #v6
3333
with:
3434
ref: main
3535
repository: equinor/robotics-infrastructure

.github/workflows/publish_component.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,23 +34,23 @@ jobs:
3434

3535
steps:
3636
- name: Checkout repository
37-
uses: actions/checkout@v4
37+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #v6
3838

3939
- name: Log in to the Github Container registry
40-
uses: docker/login-action@v3
40+
uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 #v4
4141
with:
4242
registry: ${{ inputs.Registry }}
4343
username: ${{ secrets.RegistryUsername }}
4444
password: ${{ secrets.RegistryPassword }}
4545

4646
- name: Extract metadata (tags, labels) for Docker
4747
id: meta
48-
uses: docker/metadata-action@v5
48+
uses: docker/metadata-action@030e881283bb7a6894de51c315a6bfe6a94e05cf #v6
4949
with:
5050
images: ${{ inputs.Registry }}/${{ inputs.ImageName }}-${{ inputs.ComponentName }}
5151

5252
- name: Build and push Docker image
53-
uses: docker/build-push-action@v6
53+
uses: docker/build-push-action@d08e5c354a6adb9ed34480a06d141179aa583294 #v7
5454
with:
5555
context: ./${{ inputs.ComponentName }}
5656
push: true

.github/workflows/runMigrations.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
runs-on: ubuntu-latest
3333
steps:
3434
- name: Checkout
35-
uses: actions/checkout@v4
35+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #v6
3636
with:
3737
ref: ${{ inputs.CheckoutRef }}
3838

@@ -50,13 +50,13 @@ jobs:
5050

5151
- name: Checkout Pull Request by SHA
5252
if: ${{ inputs.PullRequestCheckout }}
53-
uses: actions/checkout@v4
53+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #v6
5454
with:
5555
repository: ${{ github.event.pull_request.head.repo.full_name }}
5656
ref: ${{ steps.pr_head_sha.outputs.pr_head_sha }}
5757

5858
- name: Set up .NET
59-
uses: actions/setup-dotnet@v4
59+
uses: actions/setup-dotnet@vc2fa09f4bde5ebb9d1777cf28262a3eb3db3ced7 #v5
6060
with:
6161
dotnet-version: "10.0.x"
6262

.github/workflows/scan_with_trufflehog.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ jobs:
1515
shell: bash
1616
steps:
1717
- name: Checkout code
18-
uses: actions/checkout@v4
18+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #v6
1919
with:
2020
fetch-depth: 0
2121

2222
- name: TruffleHog OSS
2323
id: trufflehog
24-
uses: trufflesecurity/trufflehog@v3.90.3
24+
uses: trufflesecurity/trufflehog@6c64db94d5b2e09d7e0948fb6bd3166cc6fffbc7 #v3
2525
with:
2626
path: ./
2727
base: "${{ github.event.repository.default_branch }}"

.github/workflows/trivy-config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222

2323
steps:
2424
- name: Checkout code
25-
uses: actions/checkout@v5
25+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #v6
2626
with:
2727
persist-credentials: false
2828

@@ -37,7 +37,7 @@ jobs:
3737
exit-code: '0'
3838

3939
- name: Upload scan results to GitHub Security tab
40-
uses: github/codeql-action/upload-sarif@v3
40+
uses: github/codeql-action/upload-sarif@c10b8064de6f491fea524254123dbe5e09572f13 #v4
4141
with:
4242
sarif_file: 'trivy-results-iac.sarif'
4343

.github/workflows/updateDatabase.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
# Using the post request directly to be able to remove the reaction later (Need reaction id for this)
2929
# This allows the reaction to act as a status for the function.
3030
- name: React to comment
31-
uses: octokit/request-action@v2.x
31+
uses: octokit/request-action@b91aabaa861c777dcdb14e2387e30eddf04619ae #v3
3232
id: eyes
3333
with:
3434
route: POST /repos/${{ github.repository }}/issues/comments/${{ github.event.comment.id }}/reactions
@@ -46,7 +46,7 @@ jobs:
4646
review_approved: ${{ contains(fromJson(steps.get.outputs.data).*.state, 'APPROVED') }}
4747
eyes_id: ${{ needs.base_check.outputs.eyes_id }}
4848
steps:
49-
- uses: octokit/request-action@v2.x
49+
- uses: octokit/request-action@b91aabaa861c777dcdb14e2387e30eddf04619ae #v3
5050
id: get
5151
with: # Search in PR's for this ID with review approved.
5252
# If no results, the PR is not approved
@@ -63,20 +63,20 @@ jobs:
6363
issues: write
6464
steps:
6565
- name: Remove 'eyes' reaction
66-
uses: octokit/request-action@v2.x
66+
uses: octokit/request-action@b91aabaa861c777dcdb14e2387e30eddf04619ae #v3
6767
with:
6868
route: DELETE /repos/${{ github.repository }}/issues/comments/${{ github.event.comment.id }}/reactions/${{ needs.get_review_state.outputs.eyes_id }}
6969
env:
7070
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7171

7272
- name: React to comment
73-
uses: peter-evans/create-or-update-comment@v4
73+
uses: peter-evans/create-or-update-comment@e8674b075228eee787fea43ef493e45ece1004c9 #v5
7474
with:
7575
comment-id: ${{ github.event.comment.id }}
7676
reactions: confused, -1
7777

7878
- name: Add comment
79-
uses: peter-evans/create-or-update-comment@v4
79+
uses: peter-evans/create-or-update-comment@e8674b075228eee787fea43ef493e45ece1004c9 #v5
8080
with:
8181
token: ${{ secrets.GITHUB_TOKEN }}
8282
issue-number: ${{ github.event.issue.number }}
@@ -92,20 +92,20 @@ jobs:
9292
issues: write
9393
steps:
9494
- name: Remove 'eyes' reaction
95-
uses: octokit/request-action@v2.x
95+
uses: octokit/request-action@b91aabaa861c777dcdb14e2387e30eddf04619ae #v3
9696
with:
9797
route: DELETE /repos/${{ github.repository }}/issues/comments/${{ github.event.comment.id }}/reactions/${{ needs.get_review_state.outputs.eyes_id }}
9898
env:
9999
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
100100

101101
- name: React to comment
102-
uses: peter-evans/create-or-update-comment@v4
102+
uses: peter-evans/create-or-update-comment@e8674b075228eee787fea43ef493e45ece1004c9 #v5
103103
with:
104104
comment-id: ${{ github.event.comment.id }}
105105
reactions: rocket, +1
106106

107107
- name: Add comment
108-
uses: peter-evans/create-or-update-comment@v4
108+
uses: peter-evans/create-or-update-comment@e8674b075228eee787fea43ef493e45ece1004c9 #v5
109109
with:
110110
token: ${{ secrets.GITHUB_TOKEN }}
111111
issue-number: ${{ github.event.issue.number }}
@@ -133,7 +133,7 @@ jobs:
133133
issues: write
134134
steps:
135135
- name: Add comment
136-
uses: peter-evans/create-or-update-comment@v4
136+
uses: peter-evans/create-or-update-comment@e8674b075228eee787fea43ef493e45ece1004c9 #v5
137137
with:
138138
token: ${{ secrets.GITHUB_TOKEN }}
139139
issue-number: ${{ github.event.issue.number }}
@@ -149,7 +149,7 @@ jobs:
149149
issues: write
150150
steps:
151151
- name: Add comment
152-
uses: peter-evans/create-or-update-comment@v4
152+
uses: peter-evans/create-or-update-comment@e8674b075228eee787fea43ef493e45ece1004c9 #v5
153153
with:
154154
token: ${{ secrets.GITHUB_TOKEN }}
155155
issue-number: ${{ github.event.issue.number }}

0 commit comments

Comments
 (0)