Skip to content

Commit 7f4f46c

Browse files
chore: Pin actions to commits not versions (#2430)
* chore: Pin actions to commits not versions * Update .github/workflows/build_documentation.yml Co-authored-by: David Knaack <david.knaack@sap.com> --------- Co-authored-by: David Knaack <david.knaack@sap.com>
1 parent 393a655 commit 7f4f46c

4 files changed

Lines changed: 18 additions & 20 deletions

File tree

.github/workflows/auto-lint-fix.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,21 @@ jobs:
1212
steps:
1313
- name: Generate GitHub App token
1414
id: app-token
15-
uses: actions/create-github-app-token@v3
15+
uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1
1616
with:
1717
app-id: ${{ secrets.SAP_CLOUD_SDK_BOT_CLIENT_ID }}
1818
private-key: ${{ secrets.SAP_CLOUD_SDK_BOT_PRIVATE_KEY }}
1919
owner: SAP
2020
repositories: cloud-sdk
2121
permission-contents: write
2222
- name: Checkout
23-
uses: actions/checkout@v6
23+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2424
with:
2525
fetch-depth: 0
2626
ref: ${{ github.event.pull_request.head.ref }}
2727
token: ${{ steps.app-token.outputs.token }}
2828
- name: Setup Node
29-
uses: actions/setup-node@v6
29+
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
3030
with:
3131
node-version: 20
3232
- name: Install dependencies

.github/workflows/build_documentation.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: Checkout
12-
uses: actions/checkout@v6
12+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1313
- name: Determine Changed Files
1414
id: changed-files
1515
run: |
@@ -23,13 +23,11 @@ jobs:
2323
- name: Vale Linter
2424
# vale fails if the PR is too large, e.g. when updating API docs
2525
if: ${{ github.event.pull_request.changed_files < 100 }}
26-
# You may pin to the exact commit or the version.
27-
# uses: errata-ai/vale-action@0da98680790f89b8d5b685de9c264f55addc971b
28-
uses: errata-ai/vale-action@reviewdog
26+
uses: vale-cli/vale-action@d89dee975228ae261d22c15adcd03578634d429c # v2.1.1
2927
with:
3028
# version of 'vale' to use
3129
# see https://github.com/errata-ai/vale for all releases
32-
version: 3.0.5
30+
version: 3.14.1
3331
# changed files. computed in the step above
3432
files: ${{ steps.changed-files.outputs.CHANGED_FILES }}
3533
# the separator for the file list. we are using a comma (see step above)
@@ -40,10 +38,10 @@ jobs:
4038
# Required
4139
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
4240
- name: Setup Node
43-
uses: actions/setup-node@v6
41+
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
4442
with:
4543
node-version: 20
46-
- uses: actions/cache@v5
44+
- uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
4745
id: cache
4846
with:
4947
path: node_modules
@@ -58,12 +56,12 @@ jobs:
5856
needs: [checks]
5957
steps:
6058
- name: Checkout
61-
uses: actions/checkout@v6
59+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
6260
- name: Setup Node
63-
uses: actions/setup-node@v6
61+
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
6462
with:
6563
node-version: 20
66-
- uses: actions/cache@v5
64+
- uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
6765
id: cache
6866
with:
6967
path: node_modules
@@ -83,7 +81,7 @@ jobs:
8381
steps:
8482
- name: Dependabot metadata
8583
id: metadata
86-
uses: dependabot/fetch-metadata@v3.0.0
84+
uses: dependabot/fetch-metadata@ffa630c65fa7e0ecfa0625b5ceda64399aea1b36 # v3.0.0
8785
with:
8886
github-token: '${{ secrets.GITHUB_TOKEN }}'
8987
- name: Approve a PR

.github/workflows/codeql-analysis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ jobs:
3838

3939
steps:
4040
- name: Checkout repository
41-
uses: actions/checkout@v6
41+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
4242

4343
# Initializes the CodeQL tools for scanning.
4444
- name: Initialize CodeQL
45-
uses: github/codeql-action/init@v4
45+
uses: github/codeql-action/init@95e58e9a2cdfd71adc6e0353d5c52f41a045d225 # v4.35.2
4646
with:
4747
languages: ${{ matrix.language }}
4848
config-file: ./.github/codeql/codeql-config.yml
@@ -56,7 +56,7 @@ jobs:
5656
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5757
# If this step fails, then you should remove it and run the build manually (see below)
5858
- name: Autobuild
59-
uses: github/codeql-action/autobuild@v4
59+
uses: github/codeql-action/autobuild@95e58e9a2cdfd71adc6e0353d5c52f41a045d225 # v4.35.2
6060

6161
# ℹ️ Command-line programs to run using the OS shell.
6262
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
@@ -69,4 +69,4 @@ jobs:
6969
# ./location_of_script_within_repo/buildscript.sh
7070

7171
- name: Perform CodeQL Analysis
72-
uses: github/codeql-action/analyze@v4
72+
uses: github/codeql-action/analyze@95e58e9a2cdfd71adc6e0353d5c52f41a045d225 # v4.35.2

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ jobs:
99
release:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v6
13-
- uses: actions/setup-node@v6
12+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
13+
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
1414
with:
1515
node-version: 24
1616
- name: Release Documentation to GitHub Pages

0 commit comments

Comments
 (0)