Skip to content

Commit 18c1d90

Browse files
hyperpolymathclaude
andcommitted
fix(ci): wrap hashFiles in expression syntax in secret-scanner
Job-level `if:` with bare `hashFiles()` causes a workflow file parse error. Wrapping in `${{ }}` fixes the expression evaluation. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 0eb3fd8 commit 18c1d90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/secret-scanner.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
# Rust-specific: Check for hardcoded crypto values
3838
rust-secrets:
3939
runs-on: ubuntu-latest
40-
if: hashFiles('**/Cargo.toml') != ''
40+
if: ${{ hashFiles('**/Cargo.toml') != '' }}
4141
steps:
4242
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v4
4343

0 commit comments

Comments
 (0)