From 2b85a2bda5f14c8c100ce3abf8a4c3f92d04ee8f Mon Sep 17 00:00:00 2001 From: Glenn Wilkinson Date: Wed, 14 Sep 2022 11:06:03 +0100 Subject: [PATCH] Updated release workflow to mitigate set-env vulnerability and fix Windows build --- .github/workflows/release.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 945c89ef..dac09932 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -42,9 +42,11 @@ jobs: - if: matrix.os == 'ubuntu-latest' run: sudo apt-get update && sudo apt-get install -y gcc-multilib - if: matrix.arch == '386' - run: echo "::set-env name=RELEASE::gophish-${{ github.event.release.tag_name }}-${{ matrix.releaseos}}-32bit" + run: echo "RELEASE=gophish-${{ github.event.release.tag_name }}-${{ matrix.releaseos }}-32bit" >> $GITHUB_ENV - if: matrix.arch == 'amd64' - run: echo "::set-env name=RELEASE::gophish-${{ github.event.release.tag_name}}-${{ matrix.releaseos}}-64bit" + run: echo "RELEASE=gophish-${{ github.event.release.tag_name }}-${{ matrix.releaseos }}-64bit" >> $GITHUB_ENV + - if: matrix.os == 'windows-latest' + run: echo "RELEASE=gophish-${{ github.event.release.tag_name }}-${{ matrix.releaseos }}-64bit" | Out-File -FilePath $env:GITHUB_ENV -Append # https://github.com/actions/runner/issues/1636 - uses: actions/checkout@v2 - name: Build ${{ matrix.goos }}/${{ matrix.arch }} run: go build -o ${{ matrix.bin }}