diff --git a/.github/workflows/control.yml b/.github/workflows/control.yml index 4a4247cbc..97d02b859 100644 --- a/.github/workflows/control.yml +++ b/.github/workflows/control.yml @@ -103,3 +103,5 @@ jobs: token: ${{ secrets.GREENBONE_BOT_TOKEN }} name: ${{ secrets.GREENBONE_BOT }} email: ${{ secrets.GREENBONE_BOT_MAIL }} + gpg_key: ${{ secrets.GPG_KEY }} + gpg_pass: ${{ secrets.GPG_PASSPHRASE }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b3a0335e3..6e74e9216 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -27,6 +27,10 @@ on: required: true email: required: true + gpg_key: + required: true + gpg_pass: + required: true # This job first determines the target branch of the closed pull request. If the target branch is "main", @@ -129,8 +133,8 @@ jobs: export filename="$PROJECT-$nrn" curl -sfSL --retry 3 --retry-connrefused --retry-delay 2 -o assets/$filename.zip https://github.com/${{ github.repository }}/archive/refs/tags/$nrn.zip curl -sfSL --retry 3 --retry-connrefused --retry-delay 2 -o assets/$filename.tar.gz https://github.com/${{ github.repository }}/archive/refs/tags/$nrn.tar.gz - echo -e "${{ secrets.GPG_KEY }}" > private.pgp - echo ${{ secrets.GPG_PASSPHRASE }} | bash .github/sign-assets.sh private.pgp + echo -e "${{ secrets.gpg_key }}" > private.pgp + echo ${{ secrets.gpg_pass }} | bash .github/sign-assets.sh private.pgp rm assets/$filename.zip rm assets/$filename.tar.gz gh release upload $nrn assets/*