Skip to content

Commit e6edd1f

Browse files
committed
Run zizmor static analysis
1 parent 54804c4 commit e6edd1f

File tree

3 files changed

+15
-8
lines changed

3 files changed

+15
-8
lines changed

.github/actions/coverage/action.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,14 @@ runs:
3131
- name: Enforce coverage
3232
shell: bash
3333
run: |
34-
if [ "${{ steps.test-coverage.outputs.coverage_status }}" != "0" ]; then
34+
if [ "${STEPS_TEST_COVERAGE_OUTPUTS_COVERAGE_STATUS}" != "0" ]; then
3535
echo "Code isn't fully covered!"
36-
if [ "${{ inputs.enforce }}" == "true" ]; then
36+
if [ "${INPUTS_ENFORCE}" == "true" ]; then
3737
exit 1
3838
fi
3939
else
4040
echo "Code is fully covered!"
4141
fi
42+
env:
43+
STEPS_TEST_COVERAGE_OUTPUTS_COVERAGE_STATUS: ${{ steps.test-coverage.outputs.coverage_status }}
44+
INPUTS_ENFORCE: ${{ inputs.enforce }}

.github/workflows/check-go-versions.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ jobs:
5151
if: steps.go-versions.outputs.latest != env.officialLatestVersion
5252
id: update-go-versions
5353
run: |
54-
sed -i -e "s#latest=[^ ]*#latest=${{ env.officialLatestVersion }}#g" \
55-
-e "s#penultimate=[^ ]*#penultimate=${{ env.officialPenultimateVersion }}#g" \
54+
sed -i -e "s#latest=[^ ]*#latest=${OFFICIALLATESTVERSION}#g" \
55+
-e "s#penultimate=[^ ]*#penultimate=${OFFICIALPENULTIMATEVERSION}#g" \
5656
./.github/variables/go-versions.env
5757
5858
- name: Create GitHub token

.github/workflows/go-versions.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ on:
3636

3737
jobs:
3838
go-versions:
39-
runs-on: ubuntu-latest
39+
runs-on: ubuntu-slim
4040
outputs:
4141
latest: ${{ steps.set-env.outputs.latest }}
4242
penultimate: ${{ steps.set-env.outputs.penultimate }}
@@ -51,8 +51,12 @@ jobs:
5151
- name: Set Go Version Matrices
5252
id: set-matrix
5353
run: |
54-
if [ "${{ steps.set-env.outputs.penultimate }}" == "${{ steps.set-env.outputs.min }}" ]; then
55-
echo "all=[\"${{ steps.set-env.outputs.latest }}\",\"${{ steps.set-env.outputs.penultimate }}\"]" >> $GITHUB_OUTPUT
54+
if [ "${STEPS_SET_ENV_OUTPUTS_PENULTIMATE}" == "${STEPS_SET_ENV_OUTPUTS_MIN}" ]; then
55+
echo "all=[\"${STEPS_SET_ENV_OUTPUTS_LATEST}\",\"${STEPS_SET_ENV_OUTPUTS_PENULTIMATE}\"]" >> $GITHUB_OUTPUT
5656
else
57-
echo "all=[\"${{ steps.set-env.outputs.latest }}\",\"${{ steps.set-env.outputs.penultimate }}\",\"${{ steps.set-env.outputs.min }}\"]" >> $GITHUB_OUTPUT
57+
echo "all=[\"${STEPS_SET_ENV_OUTPUTS_LATEST}\",\"${STEPS_SET_ENV_OUTPUTS_PENULTIMATE}\",\"${STEPS_SET_ENV_OUTPUTS_MIN}\"]" >> $GITHUB_OUTPUT
5858
fi
59+
env:
60+
STEPS_SET_ENV_OUTPUTS_PENULTIMATE: ${{ steps.set-env.outputs.penultimate }}
61+
STEPS_SET_ENV_OUTPUTS_MIN: ${{ steps.set-env.outputs.min }}
62+
STEPS_SET_ENV_OUTPUTS_LATEST: ${{ steps.set-env.outputs.latest }}

0 commit comments

Comments
 (0)