Skip to content

Commit 210cfad

Browse files
authored
Merge pull request #1585 from Adyen/copilot/fix-workflow-action-versions
Pin GitHub Actions to immutable commit SHAs
2 parents 2e88925 + 4bf063d commit 210cfad

9 files changed

Lines changed: 22 additions & 22 deletions

File tree

.github/workflows/codeql-analysis.yml

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

1616
steps:
1717
- name: Checkout repository
18-
uses: actions/checkout@v4
18+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1919
with:
2020
# We must fetch at least the immediate parents so that if this is
2121
# a pull request then we can checkout the head.
2222
fetch-depth: 2
2323

2424
# Initializes the CodeQL tools for scanning.
2525
- name: Initialize CodeQL
26-
uses: github/codeql-action/init@v3
26+
uses: github/codeql-action/init@aa578102511db1f4524ed59b8cc2bae4f6e88195 # v3.27.6
2727
# Override language selection by uncommenting this and choosing your languages
2828
# with:
2929
# languages: go, javascript, csharp, python, cpp, java
3030

3131
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
3232
# If this step fails, then you should remove it and run the build manually (see below)
3333
- name: Autobuild
34-
uses: github/codeql-action/autobuild@v3
34+
uses: github/codeql-action/autobuild@aa578102511db1f4524ed59b8cc2bae4f6e88195 # v3.27.6
3535

3636
# ℹ️ Command-line programs to run using the OS shell.
3737
# 📚 https://git.io/JvXDl
@@ -45,4 +45,4 @@ jobs:
4545
# make release
4646

4747
- name: Perform CodeQL Analysis
48-
uses: github/codeql-action/analyze@v3
48+
uses: github/codeql-action/analyze@aa578102511db1f4524ed59b8cc2bae4f6e88195 # v3.27.6

.github/workflows/format.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
1616
with:
1717
token: ${{ secrets.ADYEN_AUTOMATION_BOT_ACCESS_TOKEN }}
18-
- uses: actions/setup-node@v4
18+
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
1919
with:
2020
node-version: 20.x
2121
- run: |

.github/workflows/label_new_issues.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Add 'needs response' label to new issues
14-
uses: actions-ecosystem/action-add-labels@v1
14+
uses: actions-ecosystem/action-add-labels@18f1af5e3544586314bbe15c0273249c770b2daf # v1
1515
with:
1616
github_token: ${{ secrets.GITHUB_TOKEN }}
1717
labels: 'needs response'

.github/workflows/node-ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ jobs:
1919
runs-on: ubuntu-latest
2020

2121
steps:
22-
- uses: actions/checkout@v4
22+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2323
- name: Set up Node.js ${{ matrix.node-version }}
24-
uses: actions/setup-node@v4
24+
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
2525
with:
2626
node-version: ${{ matrix.node-version }}
2727
- name: Cache Node.js modules
28-
uses: actions/cache@v3
28+
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
2929
with:
3030
path: ~/.npm
3131
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
@@ -45,13 +45,13 @@ jobs:
4545
node-version: [18.x, 20.x, 22.x]
4646

4747
steps:
48-
- uses: actions/checkout@v4
48+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4949
- name: Set up Node.js ${{ matrix.node-version }}
50-
uses: actions/setup-node@v4
50+
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
5151
with:
5252
node-version: ${{ matrix.node-version }}
5353
- name: Cache Node.js modules
54-
uses: actions/cache@v3
54+
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
5555
with:
5656
path: ~/.npm
5757
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}

.github/workflows/npm-debug.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ jobs:
1414
runs-on: ubuntu-latest
1515
environment: release
1616
steps:
17-
- uses: actions/checkout@v4
18-
- uses: actions/setup-node@v4
17+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
18+
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
1919
with:
2020
node-version: '18.x'
2121
registry-url: 'https://registry.npmjs.org'

.github/workflows/npmpublish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ jobs:
1717
env:
1818
NODE_AUTH_TOKEN: ${{ secrets.NPM_ADYEN_NODE_API_LIBRARY_TOKEN }}
1919
steps:
20-
- uses: actions/checkout@v4
21-
- uses: actions/setup-node@v4
20+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
21+
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
2222
with:
2323
node-version: '18.x'
2424
registry-url: 'https://registry.npmjs.org'

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ jobs:
2929
pull-requests: write
3030
runs-on: ubuntu-latest
3131
steps:
32-
- uses: actions/checkout@v4
32+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3333
- name: Prepare the next main release
34-
uses: Adyen/release-automation-action@v1.3.1
34+
uses: Adyen/release-automation-action@f5e0d6e68f1b203beb443efcabc680e087c2d334 # v1.3.1
3535
with:
3636
token: ${{ secrets.ADYEN_AUTOMATION_BOT_ACCESS_TOKEN }}
3737
develop-branch: main

.github/workflows/sonarcloud.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ jobs:
1414
node-sonarqube:
1515
runs-on: ubuntu-latest
1616
steps:
17-
- uses: actions/checkout@v4
17+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1818
with:
1919
fetch-depth: 0
2020

2121
- name: Setup Node.js
22-
uses: actions/setup-node@v4
22+
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
2323
with:
2424
node-version: 20
2525
cache: 'npm'
@@ -31,7 +31,7 @@ jobs:
3131
run: npm run test:coverage
3232

3333
- name: Cache SonarCloud packages
34-
uses: actions/cache@v4
34+
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
3535
with:
3636
path: ~/.sonar/cache
3737
key: ${{ runner.os }}-sonar

.github/workflows/stale.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
stale:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/stale@v9
14+
- uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0
1515
with:
1616
repo-token: ${{ secrets.GITHUB_TOKEN }}
1717
stale-issue-message: 'This issue has been automatically marked as stale due to inactivity and will be closed in 7 days if no further activity occurs.'

0 commit comments

Comments
 (0)