Commit eeb8655
fix: use env-passthrough for graceful-skip gates
The `secrets` context isn't available in `if:` expressions at any level
(GitHub Actions context-availability rules), which is why the previous
attempt to use `secrets.X != ''` directly in `if:` failed workflow
validation. Standard workaround: declare the secret as a job-level (or
step-level) `env:` value, then check `env.X != ''` in the `if:`.
ggshield.yaml: secret moved to job-level env, gate is now `env.X != ''`
on each step. Step-level env on the action invocation is no longer
needed (job-level env is inherited).
CI.yaml codecov: secret declared as step-level env, gate is appended to
the existing condition. token: also reads from env for consistency.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 7f078ac commit eeb8655
2 files changed
Lines changed: 12 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
122 | 124 | | |
123 | 125 | | |
124 | | - | |
| 126 | + | |
125 | 127 | | |
126 | 128 | | |
127 | 129 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
22 | | - | |
23 | | - | |
| 23 | + | |
0 commit comments