diff --git a/.github/workflows/check-submission.yml b/.github/workflows/check-submission.yml index 1cc98e6..e085139 100644 --- a/.github/workflows/check-submission.yml +++ b/.github/workflows/check-submission.yml @@ -31,13 +31,17 @@ jobs: - name: Check Submission id: check_submission run: >- - HASH_INPUT="${{ github.event.pull_request.user.login }}-${{ secrets.SALT1 }}-${{ secrets.SALT2 }}" + 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 }}`; if [[ "$SUBMISSION" =~ ^[a-zA-Z0-9]+$ ]]; then echo "Confirming submission ($SUBMISSION) for ${{ github.event.pull_request.user.login }} equals check..."; + echo "Check: $CHECK"; + echo "Raw: $RAW"; + if [[ "$SUBMISSION" = "$CHECK" ]]; then echo "Submission match" echo "RESULT=pass" >> "$GITHUB_OUTPUT"; diff --git a/plank-holders.md b/plank-holders.md index 70f851c..d5ad56b 100644 --- a/plank-holders.md +++ b/plank-holders.md @@ -13,3 +13,4 @@ Fork this repository, add your name to the list below (**along with the correct ## Plank Holder List * @whitehouse ae82cfd9e7b3916b2ef48ee7a2444dbb8922778988d02b3dbe87d28e223edd052929068d02e2d1761b648bf5ad157b4cde17d2d662abf19455bd93213e26d382 +* @jordangov dd73d45e6d7d2d9c317240155f6306e6f7b683a4d6cd4a12b3621b1222e08935e3792fbba61c5fe7120fb05b8a3de35c48f5cb985b9191dc305ea25605e24b49