Skip to content

Commit 08c486b

Browse files
authored
Merge branch 'main' into dependabot/pip/google-cloud-firestore-gte-2.28.0
2 parents af05111 + a7aafa2 commit 08c486b

6 files changed

Lines changed: 266 additions & 23 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: Continuous Integration
22

33
on: pull_request
44

5+
permissions:
6+
contents: read
7+
58
jobs:
69
build:
710
runs-on: ubuntu-latest
@@ -11,10 +14,12 @@ jobs:
1114
python: ['3.9', '3.10', '3.11', '3.12', '3.13', 'pypy3.9']
1215

1316
steps:
14-
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # 4.3.1
17+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
18+
with:
19+
persist-credentials: false
1520

1621
- name: Set up Python 3.13 for emulator
17-
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # 5.6.0
22+
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
1823
with:
1924
python-version: '3.13'
2025
- name: Setup functions emulator environment
@@ -24,7 +29,7 @@ jobs:
2429
pip install -r integration/emulators/functions/requirements.txt
2530
deactivate
2631
- name: Set up Python ${{ matrix.python }}
27-
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # 5.6.0
32+
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
2833
with:
2934
python-version: ${{ matrix.python }}
3035
- name: Install dependencies
@@ -33,12 +38,12 @@ jobs:
3338
pip install -r requirements.txt
3439
- name: Test with pytest
3540
run: pytest
36-
- name: Set up Node.js 20
37-
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # 4.4.0
41+
- name: Set up Node.js 24
42+
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
3843
with:
39-
node-version: 20
44+
node-version: 24
4045
- name: Set up Java 21
41-
uses: actions/setup-java@f2beeb24e141e01a676f977032f5a29d81c9e27e # 5.1.0
46+
uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0
4247
with:
4348
distribution: 'temurin'
4449
java-version: '21'
@@ -52,9 +57,11 @@ jobs:
5257
lint:
5358
runs-on: ubuntu-latest
5459
steps:
55-
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # 4.3.1
60+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
61+
with:
62+
persist-credentials: false
5663
- name: Set up Python 3.9
57-
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # 5.6.0
64+
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
5865
with:
5966
python-version: 3.9
6067
- name: Install dependencies

‎.github/workflows/nightly.yml‎

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,23 @@ on:
2222
repository_dispatch:
2323
types: [firebase_nightly_build]
2424

25+
permissions:
26+
contents: read
27+
2528
jobs:
2629
nightly:
2730

2831
runs-on: ubuntu-latest
2932

3033
steps:
3134
- name: Checkout source for staging
32-
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # 4.3.1
35+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
3336
with:
3437
ref: ${{ github.event.client_payload.ref || github.ref }}
38+
persist-credentials: false
3539

3640
- name: Set up Python
37-
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # 5.6.0
41+
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
3842
with:
3943
python-version: 3.9
4044

@@ -63,14 +67,14 @@ jobs:
6367
# Attach the packaged artifacts to the workflow output. These can be manually
6468
# downloaded for later inspection if necessary.
6569
- name: Archive artifacts
66-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
70+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
6771
with:
6872
name: dist
6973
path: dist
7074

7175
- name: Send email on failure
7276
if: failure()
73-
uses: firebase/firebase-admin-node/.github/actions/send-email@2e2b36a84ba28679bcb7aecdacabfec0bded2d48 # Admin Node SDK v13.6.0
77+
uses: firebase/firebase-admin-node/.github/actions/send-email@7343f166ec71c2efee5fe0554c2fb96203faf2a5 # Admin Node SDK v14.2.0
7478
with:
7579
api-key: ${{ secrets.OSS_BOT_MAILGUN_KEY }}
7680
domain: ${{ secrets.OSS_BOT_MAILGUN_DOMAIN }}
@@ -85,7 +89,7 @@ jobs:
8589

8690
- name: Send email on cancelled
8791
if: cancelled()
88-
uses: firebase/firebase-admin-node/.github/actions/send-email@2e2b36a84ba28679bcb7aecdacabfec0bded2d48 # Admin Node SDK v13.6.0
92+
uses: firebase/firebase-admin-node/.github/actions/send-email@7343f166ec71c2efee5fe0554c2fb96203faf2a5 # Admin Node SDK v14.2.0
8993
with:
9094
api-key: ${{ secrets.OSS_BOT_MAILGUN_KEY }}
9195
domain: ${{ secrets.OSS_BOT_MAILGUN_DOMAIN }}

‎.github/workflows/release.yml‎

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ on:
3232
types:
3333
- firebase_build
3434

35+
permissions:
36+
contents: read
37+
3538
jobs:
3639
stage_release:
3740
# To publish a release, merge a PR with the title prefix '[chore] Release ' to main
@@ -46,10 +49,12 @@ jobs:
4649

4750
steps:
4851
- name: Checkout source for staging
49-
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # 4.3.1
52+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
53+
with:
54+
persist-credentials: false
5055

5156
- name: Set up Python
52-
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # 5.6.0
57+
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
5358
with:
5459
python-version: 3.9
5560

@@ -78,7 +83,7 @@ jobs:
7883
# Attach the packaged artifacts to the workflow output. These can be manually
7984
# downloaded for later inspection if necessary.
8085
- name: Archive artifacts
81-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
86+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
8287
with:
8388
name: dist
8489
path: dist
@@ -105,11 +110,14 @@ jobs:
105110

106111
steps:
107112
- name: Checkout source for publish
108-
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # 4.3.1
113+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
114+
with:
115+
# Ignored since the GITHUB_TOKEN needs to be persisted for this workflow.
116+
persist-credentials: true # zizmor: ignore[artipacked]
109117

110118
# Download the artifacts created by the stage_release job.
111119
- name: Download release candidates
112-
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
120+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
113121
with:
114122
name: dist
115123
path: dist

0 commit comments

Comments
 (0)