Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding myself as a plank holder #11

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/workflows/check-submission.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
1 change: 1 addition & 0 deletions plank-holders.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Loading