Commit 7f078ac
ci: graceful-skip ggshield + codecov when their secrets aren't set
Newly-init'd modules from this template fail their first push because the
optional GITGUARDIAN_API_KEY (ggshield) and CODECOV_TOKEN (codecov upload)
secrets aren't configured yet. This adds `secrets.<NAME> != ''` gates so
those steps no-op cleanly until the user wires the secrets up, instead of
failing the workflow run.
The ggshield gate also subsumes the existing Dependabot check (Dependabot
PRs don't have secret access, so the secret-presence check skips them
naturally) — but the explicit actor check is kept for self-documentation.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 117bcd4 commit 7f078ac
2 files changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
| 121 | + | |
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
13 | 17 | | |
14 | 18 | | |
15 | 19 | | |
| |||
0 commit comments