From aacf17d25c68f0c6b99592a7ef456d9fa432fa6b Mon Sep 17 00:00:00 2001 From: Fanon Jupkwo Date: Sat, 8 Oct 2022 08:46:52 +0100 Subject: [PATCH] fix: solve Resource not accessible by integration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR https://github.com/osscameroon/js-generator/pull/150 failed with this message: Adding message: Thanks for opening your first pull request 😊 ! We really appreciate your work. Happy Coding 🎉🎊 ! to pull request 150 Error: Resource not accessible by integration After investigating this first-interaction issue https://github.com/actions/first-interaction/issues/31 , we decided to apply these changes. This article from Github also looks good. --- .github/workflows/greetings.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/greetings.yml b/.github/workflows/greetings.yml index fd97f2d4..8971e564 100644 --- a/.github/workflows/greetings.yml +++ b/.github/workflows/greetings.yml @@ -1,11 +1,16 @@ name: Greetings -on: [pull_request, issues] +#on: [pull_request, issues] +on: + issues: + types: [opened] + pull_request_target: + types: [opened] jobs: greeting: runs-on: ubuntu-latest - permissions: - pull-requests: write - issues: write + #permissions: + #pull-requests: write + #issues: write steps: - uses: actions/first-interaction@v1 # At this moment, this GitHub Action has an issue: https://github.com/actions/first-interaction/issues/101