Skip to content

Commit a2b1c62

Browse files
authored
Pin GitHub action references (#725)
## Summary - Pin all GitHub action references to their commit SHAs - Each SHA maps to the current tag for the action at the time of pinning NO_CHANGELOG=true
1 parent b666e40 commit a2b1c62

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

.github/workflows/integration-tests.yml

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

4646
- name: Generate GitHub App Token for Workflow Trigger
4747
id: generate-token
48-
uses: actions/create-github-app-token@v1
48+
uses: actions/create-github-app-token@d72941d797fd3113feb6b93fd0dec494b13a2547 # v1.12.0
4949
with:
5050
app-id: ${{ secrets.DECO_WORKFLOW_TRIGGER_APP_ID }}
5151
private-key: ${{ secrets.DECO_WORKFLOW_TRIGGER_PRIVATE_KEY }}
@@ -81,7 +81,7 @@ jobs:
8181

8282
steps:
8383
- name: Auto-approve Check for Merge Queue
84-
uses: actions/github-script@v7
84+
uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7.1.0
8585
with:
8686
script: |
8787
await github.rest.checks.create({

.github/workflows/next-changelog.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313

1414
steps:
1515
- name: Checkout code
16-
uses: actions/checkout@v3
16+
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
1717

1818
- name: Fetch list of changed files
1919
id: changed-files

.github/workflows/push.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Set up JDK 11
14-
uses: actions/setup-java@v1
14+
uses: actions/setup-java@b6e674f4b717d7b0ae3baee0fbe79f498905dfde # v1.4.4
1515
with:
1616
java-version: 11
1717

1818
- name: Checkout
19-
uses: actions/checkout@v2
19+
uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0
2020

2121
- name: Cache Maven packages
22-
uses: actions/cache@v4
22+
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
2323
with:
2424
path: ~/.m2
2525
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
@@ -39,15 +39,15 @@ jobs:
3939

4040
steps:
4141
- name: Set up JDK
42-
uses: actions/setup-java@v1
42+
uses: actions/setup-java@b6e674f4b717d7b0ae3baee0fbe79f498905dfde # v1.4.4
4343
with:
4444
java-version: ${{ matrix.java-version }}
4545

4646
- name: Checkout
47-
uses: actions/checkout@v2
47+
uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0
4848

4949
- name: Cache Maven packages
50-
uses: actions/cache@v4
50+
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
5151
with:
5252
path: ~/.m2
5353
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ jobs:
2020

2121
steps:
2222
- name: Checkout
23-
uses: actions/checkout@v2
23+
uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0
2424

2525
- name: Set up Java for publishing to Maven Central Repository
26-
uses: actions/setup-java@v3
26+
uses: actions/setup-java@17f84c3641ba7b8f6deff6309fc4c864478f5d62 # v3.14.1
2727
with:
2828
java-version: 8
2929
server-id: central
@@ -68,7 +68,7 @@ jobs:
6868
# This step also runs ONLY on tag pushes (real release)
6969
- name: Create GitHub release
7070
if: "startsWith(github.ref, 'refs/tags/')"
71-
uses: softprops/action-gh-release@v1
71+
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # v0.1.15
7272
with:
7373
files: databricks-sdk-java/target/*.jar
7474
body_path: /tmp/release-notes/release-notes.md

.github/workflows/tagging.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ jobs:
3737
steps:
3838
- name: Generate GitHub App Token
3939
id: generate-token
40-
uses: actions/create-github-app-token@v3
40+
uses: actions/create-github-app-token@f8d387b68d61c58ab83c6c016672934102569859 # v3.0.0
4141
with:
4242
app-id: ${{ secrets.DECO_SDK_TAGGING_APP_ID }}
4343
private-key: ${{ secrets.DECO_SDK_TAGGING_PRIVATE_KEY }}
4444

4545
- name: Checkout repository
46-
uses: actions/checkout@v4
46+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
4747
with:
4848
fetch-depth: 0
4949
token: ${{ steps.generate-token.outputs.token }}

0 commit comments

Comments
 (0)