From 2e156b3bff802ae387f93d8bdefab761aa75d75a Mon Sep 17 00:00:00 2001 From: Jordan Kasper <30059011+jordangov@users.noreply.github.com> Date: Mon, 15 Jul 2024 21:53:58 +0000 Subject: [PATCH] Switching the algo to use vars vs secrets --- .github/workflows/check-submission.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/check-submission.yml b/.github/workflows/check-submission.yml index b24f37c..fe8f53f 100644 --- a/.github/workflows/check-submission.yml +++ b/.github/workflows/check-submission.yml @@ -33,8 +33,8 @@ jobs: run: >- HASH_INPUT="${{ github.event.pull_request.user.login }}-${{ secrets.SALT1 }}-${{ secrets.SALT2 }}"; echo "Checking diff from ${{ github.event.pull_request.head.ref }} on ${{ github.event.pull_request.head.repo.full_name }}..."; SUBMISSION=`(diff target/plank-holders.md source/plank-holders.md || true) | awk '/\* @${{ github.event.pull_request.user.login }}/{ print $4 }'`; - CHECK=`echo -n "$HASH_INPUT" | openssl dgst -${{ secrets.ALGO }} | awk '/[a-z0-9]+/{ print $2 }'`; - RAW=`echo -n "$HASH_INPUT" | openssl dgst -${{ secrets.ALGO }}` + CHECK=`echo -n "$HASH_INPUT" | openssl dgst -${{ vars.ALGO }} | awk '/[a-z0-9]+/{ print $2 }'`; + RAW=`echo -n "$HASH_INPUT" | openssl dgst -${{ vars.ALGO }}` if [[ "$SUBMISSION" =~ ^[a-zA-Z0-9]+$ ]]; then echo "Confirming submission ($SUBMISSION) for ${{ github.event.pull_request.user.login }} equals check...";