Commit dd87f27
fix(review): make no-secrets path truly skip, harden scripts-lint
Code-review follow-ups on the smoke workflow:
- Graceful degradation was only claimed, not real. GitHub exposes an unset
secret as an empty string (present, not nil), and the reused test skips
only on `env[...] != nil`, so a repo without the secrets would run the
scan with empty creds and fail (script's `:?` under set -euo pipefail),
not skip. Guard the scan step on the secrets being non-empty so it is
skipped when absent and the job stays green on the build step. Fix the
header comment to match.
- Correct the scripts-lint comment: the launchers' shebang is
`#!/usr/bin/env bash -il`, not `#!/usr/bin/env bash`.
- Drop the fork-controllable filename from the `::notice/::error file=`
workflow commands (workflow-command injection vector on fork PRs); log
plain lines instead. bash -n still prints the real error location.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 69d5925 commit dd87f27
1 file changed
Lines changed: 14 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
57 | 62 | | |
| 63 | + | |
58 | 64 | | |
59 | 65 | | |
60 | 66 | | |
| |||
67 | 73 | | |
68 | 74 | | |
69 | 75 | | |
70 | | - | |
| 76 | + | |
71 | 77 | | |
72 | 78 | | |
73 | 79 | | |
| |||
84 | 90 | | |
85 | 91 | | |
86 | 92 | | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
87 | 96 | | |
88 | | - | |
| 97 | + | |
89 | 98 | | |
90 | | - | |
| 99 | + | |
91 | 100 | | |
92 | 101 | | |
93 | 102 | | |
| |||
0 commit comments