Skip to content

Commit 28c4480

Browse files
committed
Run zizmor static analysis
1 parent cdc3973 commit 28c4480

File tree

3 files changed

+21
-14
lines changed

3 files changed

+21
-14
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: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ jobs:
3636
needs: check-go-eol
3737
runs-on: ubuntu-slim
3838
env:
39-
officialLatestVersion: ${{ needs.check-go-eol.outputs.latest }}
40-
officialPenultimateVersion: ${{ needs.check-go-eol.outputs.penultimate }}
39+
OFFICIAL_LATEST_VERSION: ${{ needs.check-go-eol.outputs.latest }}
40+
OFFICIAL_PENULTIMATE_VERSION: ${{ needs.check-go-eol.outputs.penultimate }}
4141
steps:
4242
- uses: actions/checkout@v6
4343
with:
@@ -48,11 +48,11 @@ jobs:
4848
run: cat ./.github/variables/go-versions.env > $GITHUB_OUTPUT
4949

5050
- name: Update go-versions.env and README.md
51-
if: steps.go-versions.outputs.latest != env.officialLatestVersion
51+
if: steps.go-versions.outputs.latest != env.OFFICIAL_LATEST_VERSION
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=${OFFICIAL_LATEST_VERSION}#g" \
55+
-e "s#penultimate=[^ ]*#penultimate=${OFFICIAL_PENULTIMATE_VERSION}#g" \
5656
./.github/variables/go-versions.env
5757
5858
- name: Create GitHub token
@@ -70,11 +70,11 @@ jobs:
7070
token: ${{ steps.github-token.outputs.token }}
7171
add-paths: |
7272
.github/variables/go-versions.env
73-
branch: "launchdarklyreleasebot/update-to-go${{ env.officialLatestVersion }}-${{ matrix.branch }}"
73+
branch: "launchdarklyreleasebot/update-to-go${{ env.OFFICIAL_LATEST_VERSION }}-${{ matrix.branch }}"
7474
author: "LaunchDarklyReleaseBot <LaunchDarklyReleaseBot@launchdarkly.com>"
7575
committer: "LaunchDarklyReleaseBot <LaunchDarklyReleaseBot@launchdarkly.com>"
7676
labels: ${{ matrix.branch }}
77-
title: "fix(deps): bump supported Go versions to ${{ env.officialLatestVersion }} and ${{ env.officialPenultimateVersion }}"
78-
commit-message: "Bumps from Go ${{ steps.go-versions.outputs.latest }} -> ${{ env.officialLatestVersion }} and ${{ steps.go-versions.outputs.penultimate }} -> ${{ env.officialPenultimateVersion }}."
77+
title: "fix(deps): bump supported Go versions to ${{ env.OFFICIAL_LATEST_VERSION }} and ${{ env.OFFICIAL_PENULTIMATE_VERSION }}"
78+
commit-message: "Bumps from Go ${{ steps.go-versions.outputs.latest }} -> ${{ env.OFFICIAL_LATEST_VERSION }} and ${{ steps.go-versions.outputs.penultimate }} -> ${{ env.OFFICIAL_PENULTIMATE_VERSION }}."
7979
body: |
8080
- [ ] I have triggered CI on this PR (either close & reopen this PR in Github UI, or `git commit -m "run ci" --allow-empty && git push`)

.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)