From dd9ae70eeaed95c93153541efa866afc43dd0f35 Mon Sep 17 00:00:00 2001 From: Philip Meier Date: Tue, 2 May 2023 15:36:07 +0200 Subject: [PATCH 1/2] add instructions insufficient permissions of contributor trigger --- .github/workflows/contributor.yaml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/contributor.yaml b/.github/workflows/contributor.yaml index 5ac30ccfaf..c5950f1769 100644 --- a/.github/workflows/contributor.yaml +++ b/.github/workflows/contributor.yaml @@ -30,7 +30,20 @@ jobs: - name: Author of comment has insufficient permissions if: ${{ !contains(fromJson('["OWNER", "COLLABORATOR", "MEMBER"]'), github.event.comment.author_association) }} run: | - echo ${{ github.event.comment.author_association }} + AUTHOR_ASSOCIATION=${{ github.event.comment.author_association }} + echo "${AUTHOR_ASSOCIATION}" + if [[ "${AUTHOR_ASSOCIATION}" == "CONTRIBUTOR" ]]; then + echo + echo If you actually should have the right permissions to trigger this, + echo they are likely not visible publicly! + echo + echo To fix this + echo + echo 1. navigate to https://github.com/nebari-dev, + echo 2. click on \'People\' in the top bar, + echo 3. scroll down to your entry, and + echo 4. change \'🔒 Private\' to \'Public\'. + fi exit 1 build: From 90b8295b378aedcede36a6d02d54a850a0ca9463 Mon Sep 17 00:00:00 2001 From: Philip Meier Date: Tue, 2 May 2023 15:56:05 +0200 Subject: [PATCH 2/2] always show instructions --- .github/workflows/contributor.yaml | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/.github/workflows/contributor.yaml b/.github/workflows/contributor.yaml index c5950f1769..2b6374477c 100644 --- a/.github/workflows/contributor.yaml +++ b/.github/workflows/contributor.yaml @@ -30,20 +30,17 @@ jobs: - name: Author of comment has insufficient permissions if: ${{ !contains(fromJson('["OWNER", "COLLABORATOR", "MEMBER"]'), github.event.comment.author_association) }} run: | - AUTHOR_ASSOCIATION=${{ github.event.comment.author_association }} - echo "${AUTHOR_ASSOCIATION}" - if [[ "${AUTHOR_ASSOCIATION}" == "CONTRIBUTOR" ]]; then - echo - echo If you actually should have the right permissions to trigger this, - echo they are likely not visible publicly! - echo - echo To fix this - echo - echo 1. navigate to https://github.com/nebari-dev, - echo 2. click on \'People\' in the top bar, - echo 3. scroll down to your entry, and - echo 4. change \'🔒 Private\' to \'Public\'. - fi + echo ${{ github.event.comment.author_association }} + echo + echo If you think you should have the right permissions to trigger this, + echo they are likely not visible publicly! + echo + echo To fix this + echo + echo 1. navigate to https://github.com/nebari-dev, + echo 2. click on \'People\' in the top bar, + echo 3. scroll down to your entry, and + echo 4. change \'🔒 Private\' to \'Public\'. exit 1 build: