Skip to content

Commit a3866c9

Browse files
committed
update boring crypto validation
1 parent a4c872d commit a3866c9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/ci-base.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,14 +165,14 @@ jobs:
165165
ARCH=${ARCH@L}
166166
OS=$(echo '${{ runner.os }}')
167167
OS=${OS@L}
168-
printf -v BINARY_PATTERN "%s-fips_%s_%s*" "${{ inputs.distribution }}" "${OS}" "${ARCH}"
168+
printf -v BINARY_PATTERN "distributions/%s/dist/%s-fips_%s_%s*/*" "${{ inputs.distribution}}" "${{ inputs.distribution }}" "${OS}" "${ARCH}"
169169
echo "Looking for binary pattern: ${BINARY_PATTERN}"
170-
BINARY=$(ls ${BINARY_PATTERN} 2>/dev/null | head -1)
170+
BINARY=$(find ${BINARY_PATTERN} 2>/dev/null | head -1)
171171
if [[ -z "${BINARY}" ]]; then
172172
echo "Error"
173173
exit 1
174174
fi
175-
go tool nm ${BINARY} | grep '_Cfunc__goboringcrypto_' && (echo 'fips distro should not use standard crypto' && exit 1)
175+
go tool nm ${BINARY} | grep '_Cfunc__goboringcrypto_' || (echo 'fips distro should not use standard crypto' && exit 1)
176176
177177
- name: Run local e2e tests
178178
if: ${{ hashFiles(format('distributions/{0}/test/spec-local.yaml', inputs.distribution)) != '' }}

0 commit comments

Comments
 (0)