From 1537bf9257458ccf18d6919442de2e202fcf832c Mon Sep 17 00:00:00 2001 From: Jean-Christophe Fillion-Robin Date: Wed, 23 Oct 2024 17:28:21 -0400 Subject: [PATCH] fix: Update to MorphoCloud/MorphoCloudWorkflow@be96f27 List of MorphoCloudWorkflow changes: ``` $ git shortlog 7bc926d..be96f27 --no-merges Jean-Christophe Fillion-Robin (1): feat(validate-request): Automatically encode emails if valid and matching ``` See https://github.com/MorphoCloud/MorphoCloudWorkflow/compare/7bc926d...be96f27 --- .github/workflows/validate-request.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/workflows/validate-request.yml b/.github/workflows/validate-request.yml index e76b4f96..145c2c13 100644 --- a/.github/workflows/validate-request.yml +++ b/.github/workflows/validate-request.yml @@ -189,4 +189,26 @@ jobs: > > If either email format is invalid or the emails do not match, please update the issue description accordingly. + > [!TIP] + > Once the emails are correctly formatted and match, they will be automatically obfuscated for security. + See details at https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} + + - name: Encode emails + id: encode_emails + if: + ${{ success() && steps.check_email_encryption.outputs.encoded == + 'false' && steps.check_email_format.outputs.valid == "true" && + steps.check_confirm_email_format.outputs.valid == "true" && + steps.check_emails_match.outputs.valid == "true" }} + run: | + gh workflow run update-issue-from-workflow.yml \ + -f issue_number=$ISSUE_NUMBER \ + -f command_name=$COMMAND_NAME + gh issue comment $ISSUE_NUMBER \ + -b "Workflow **update-issue-from-workflow.yml** triggered by **validate-request.yml** for command $COMMAND_NAME
\ +
\ + For details, see https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}_" + env: + ISSUE_NUMBER: ${{ steps.collect_inputs.outputs.issue_number }} + COMMAND_NAME: encode_email