Skip to content

Commit c93d9bf

Browse files
sserrataclaude
andauthored
Add cooldown period to Dependabot update schedules (PaloAltoNetworks#1193)
* Add cooldown period to Dependabot update schedules Adds a 7-day cooldown to both npm and github-actions ecosystems to reduce PR noise from rapid successive version bumps. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Add .claude/ to .gitignore Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Add workflow to clean up Firebase preview channels on PR close Automatically deletes the Firebase Hosting preview channel when a PR is merged or closed, preventing channel quota exhaustion. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Harden cleanup-preview workflow Add environment gate for WIF secrets and replace npx firebase-tools with a direct REST API call to eliminate npm supply chain surface. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 9ecb7d2 commit c93d9bf

3 files changed

Lines changed: 40 additions & 0 deletions

File tree

.github/dependabot.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,12 @@ updates:
99
patterns:
1010
- "react"
1111
- "react-dom"
12+
cooldown:
13+
default-days: 7
1214

1315
- package-ecosystem: github-actions
1416
directory: /
1517
schedule:
1618
interval: weekly
19+
cooldown:
20+
default-days: 7
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: "Cleanup Preview"
2+
3+
on:
4+
pull_request_target:
5+
types: [closed]
6+
7+
permissions: {}
8+
9+
jobs:
10+
cleanup:
11+
if: github.repository == 'PaloAltoNetworks/pan.dev'
12+
name: Delete preview channel
13+
runs-on: ubuntu-latest
14+
environment: preview
15+
permissions:
16+
id-token: write
17+
18+
steps:
19+
- name: Authenticate to Google Cloud
20+
id: auth
21+
uses: google-github-actions/auth@7c6bc770dae815cd3e89ee6cdf493a5fab2cc093 # v3.0.0
22+
with:
23+
workload_identity_provider: ${{ secrets.WIF_PROVIDER }}
24+
service_account: ${{ secrets.WIF_SERVICE_ACCOUNT }}
25+
26+
- name: Delete Firebase preview channel
27+
run: |
28+
curl -sf -X DELETE \
29+
-H "Authorization: Bearer $(gcloud auth print-access-token)" \
30+
"https://firebasehosting.googleapis.com/v1beta1/sites/pan-dev-f1b58/channels/pr${PR_NUMBER}" \
31+
|| echo "Channel pr${PR_NUMBER} not found or already deleted"
32+
env:
33+
PR_NUMBER: ${{ github.event.number }}

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,6 @@ src/**/feeds.json
3434
# playwright
3535
.playwright-storage.json
3636
.pw-user-data/
37+
38+
# claude code
39+
.claude/

0 commit comments

Comments
 (0)