Skip to content

Commit a037831

Browse files
committed
chore: lock down API key scope in test workflow
1 parent 86156af commit a037831

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/tests.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ jobs:
138138
done
139139
env:
140140
STEPS_GET_WORKSPACES_OUTPUTS_CHANGED_WORKSPACES: ${{ steps.get_workspaces.outputs.changed_workspaces }}
141+
GOOGLE_MAPS_API_KEY: "${{ secrets.JS_MAPS_DEV }}"
141142

142143
- name: Generate Index (Run Once After Builds)
143144
run: bash samples/generate-index.sh
@@ -152,6 +153,7 @@ jobs:
152153
# Pass the correct base reference for find-changes.sh when called by samples.spec.ts
153154
GIT_BASE_REF: ${{ github.event_name == 'pull_request' && format('origin/{0}', github.base_ref) || github.event.before }}
154155
CI: true
156+
GOOGLE_MAPS_API_KEY: "${{ secrets.JS_MAPS_DEV }}"
155157

156158
- name: Upload Test Report Artifact
157159
uses: actions/upload-artifact@v4
@@ -204,6 +206,8 @@ jobs:
204206

205207
- name: Build All Projects
206208
run: npm run build-all
209+
env:
210+
GOOGLE_MAPS_API_KEY: "${{ secrets.JS_MAPS_DEV }}"
207211

208212
- name: Generate Index (Run Once After Full Builds)
209213
run: bash samples/generate-index.sh
@@ -217,6 +221,7 @@ jobs:
217221
env:
218222
CI: true
219223
TEST_ALL_SAMPLES: "true"
224+
GOOGLE_MAPS_API_KEY: "${{ secrets.JS_MAPS_DEV }}"
220225

221226
- name: Upload Test Report Artifact
222227
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)