Skip to content

Commit 6193e93

Browse files
authored
chore: Update github actions workflows and integration test resources (#1168)
* chore: Pinned github actions to a full-length commit SHA * fix: Fixed incorrect hash * chore: Update integration test resources * chore: Added environment label to release action
1 parent 88d4b58 commit 6193e93

File tree

4 files changed

+14
-13
lines changed

4 files changed

+14
-13
lines changed
-6 Bytes
Binary file not shown.

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ jobs:
2424
java-version: [8, 11, 17]
2525

2626
steps:
27-
- uses: actions/checkout@v4
27+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
2828

2929
- name: Set up JDK
30-
uses: actions/setup-java@v4
30+
uses: actions/setup-java@c1e323688fd81a25caa38c78aa6df2d33d3e20d9 # v4.8.0
3131
with:
3232
distribution: 'zulu'
3333
java-version: ${{ matrix.java-version }}

.github/workflows/nightly.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ jobs:
2929

3030
steps:
3131
- name: Checkout source for staging
32-
uses: actions/checkout@v4
32+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
3333
with:
3434
ref: ${{ github.event.client_payload.ref || github.ref }}
3535

3636
- name: Set up JDK 8
37-
uses: actions/setup-java@v4
37+
uses: actions/setup-java@c1e323688fd81a25caa38c78aa6df2d33d3e20d9 # v4.8.0
3838
with:
3939
distribution: 'zulu'
4040
java-version: 8
@@ -48,14 +48,14 @@ jobs:
4848
# Attach the packaged artifacts to the workflow output. These can be manually
4949
# downloaded for later inspection if necessary.
5050
- name: Archive artifacts
51-
uses: actions/upload-artifact@v4
51+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
5252
with:
5353
name: dist
5454
path: dist
5555

5656
- name: Send email on failure
5757
if: failure()
58-
uses: firebase/firebase-admin-node/.github/actions/send-email@main
58+
uses: firebase/firebase-admin-node/.github/actions/send-email@2e2b36a84ba28679bcb7aecdacabfec0bded2d48 # Admin Node SDK v13.6.0
5959
with:
6060
api-key: ${{ secrets.OSS_BOT_MAILGUN_KEY }}
6161
domain: ${{ secrets.OSS_BOT_MAILGUN_DOMAIN }}
@@ -70,7 +70,7 @@ jobs:
7070

7171
- name: Send email on cancelled
7272
if: cancelled()
73-
uses: firebase/firebase-admin-node/.github/actions/send-email@main
73+
uses: firebase/firebase-admin-node/.github/actions/send-email@2e2b36a84ba28679bcb7aecdacabfec0bded2d48 # Admin Node SDK v13.6.0
7474
with:
7575
api-key: ${{ secrets.OSS_BOT_MAILGUN_KEY }}
7676
domain: ${{ secrets.OSS_BOT_MAILGUN_DOMAIN }}

.github/workflows/release.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ jobs:
4040
# via the 'ref' client parameter.
4141
steps:
4242
- name: Checkout source for staging
43-
uses: actions/checkout@v4
43+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
4444
with:
4545
ref: ${{ github.event.client_payload.ref || github.ref }}
4646

4747
- name: Set up JDK 8
48-
uses: actions/setup-java@v4
48+
uses: actions/setup-java@c1e323688fd81a25caa38c78aa6df2d33d3e20d9 # v4.8.0
4949
with:
5050
distribution: 'zulu'
5151
java-version: 8
@@ -59,7 +59,7 @@ jobs:
5959
# Attach the packaged artifacts to the workflow output. These can be manually
6060
# downloaded for later inspection if necessary.
6161
- name: Archive artifacts
62-
uses: actions/upload-artifact@v4
62+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
6363
with:
6464
name: dist
6565
path: dist
@@ -78,15 +78,16 @@ jobs:
7878
startsWith(github.event.pull_request.title, '[chore] Release ')
7979

8080
runs-on: ubuntu-latest
81+
environment: Release
8182
permissions:
8283
contents: write
8384

8485
steps:
8586
- name: Checkout source for publish
86-
uses: actions/checkout@v4
87+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
8788

8889
- name: Set up JDK 8
89-
uses: actions/setup-java@v4
90+
uses: actions/setup-java@c1e323688fd81a25caa38c78aa6df2d33d3e20d9 # v4.8.0
9091
with:
9192
distribution: 'zulu'
9293
java-version: 8
@@ -115,7 +116,7 @@ jobs:
115116
- name: Post to Twitter
116117
if: success() &&
117118
contains(github.event.pull_request.labels.*.name, 'release:tweet')
118-
uses: firebase/firebase-admin-node/.github/actions/send-tweet@main
119+
uses: firebase/firebase-admin-node/.github/actions/send-tweet@2e2b36a84ba28679bcb7aecdacabfec0bded2d48 # Admin Node SDK v13.6.0
119120
with:
120121
status: >
121122
${{ steps.preflight.outputs.version }} of @Firebase Admin Java SDK is available.

0 commit comments

Comments
 (0)