Skip to content

Commit 5b34259

Browse files
authored
fix: Resolve issues reported by zizmor, part 2 (#1303)
Signed-off-by: Marcelo E. Magallon <[email protected]>
1 parent a76f949 commit 5b34259

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/actions/go-cache-restore/action.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,12 @@ runs:
1313
- name: Compute cache info
1414
id: compute-cache-info
1515
shell: bash
16+
env:
17+
GITHUB_BASE_REF: ${{ github.base_ref }}
1618
run: |
1719
cat <<EOT >> "$GITHUB_OUTPUT"
18-
key=$(./scripts/get-go-cache-key "${{ github.base_ref }}")
19-
base_key=$(./scripts/get-go-cache-key "${{ github.base_ref }}" | sed -E -e 's,-[^-]+$,-,')
20+
key=$(./scripts/get-go-cache-key "${GITHUB_BASE_REF}")
21+
base_key=$(./scripts/get-go-cache-key "${GITHUB_BASE_REF}" | sed -E -e 's,-[^-]+$,-,')
2022
path<<EOS
2123
$(go env GOCACHE)
2224
$(go env GOMODCACHE)

0 commit comments

Comments
 (0)