Commit eafc55c
fix(ci): harden workflow security across deploy and release pipelines (#1345)
- Remove GCP_SA_KEY from GITHUB_ENV in deploy-live and deploy-preview;
google-github-actions/auth already exports GOOGLE_APPLICATION_CREDENTIALS
via ADC, so the explicit credential export step was unnecessary and
exposed the SA JSON in plaintext to all subsequent steps
- Add --ignore-scripts to yarn install in deploy-preview build job to
prevent postinstall lifecycle hooks from executing untrusted PR code
- Delete combine-dependabot-prs.yml: workflow was non-functional due to
JS syntax errors and depended on an archived third-party action
- Add explicit permissions: contents: read to deploy-live build job
- Replace hardcoded personal git identity in canary-release with
github-actions[bot] identity
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 584705f commit eafc55c
4 files changed
Lines changed: 5 additions & 158 deletions
File tree
- .github/workflows
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
| 30 | + | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
| |||
59 | 61 | | |
60 | 62 | | |
61 | 63 | | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | 64 | | |
66 | 65 | | |
67 | 66 | | |
| |||
74 | 73 | | |
75 | 74 | | |
76 | 75 | | |
77 | | - | |
78 | 76 | | |
79 | 77 | | |
80 | 78 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
| 115 | + | |
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | 158 | | |
162 | 159 | | |
163 | 160 | | |
| |||
170 | 167 | | |
171 | 168 | | |
172 | 169 | | |
173 | | - | |
174 | 170 | | |
175 | 171 | | |
176 | 172 | | |
| |||
0 commit comments