Closed pantelis-karamolegkos closed 12 months ago
👋 Hi! Thank you for this contribution! Just to let you know, our GitHub SDK team does a round of issue and PR reviews twice a week, every Monday and Friday! We have a process in place for prioritizing and responding to your input. Because you are a part of this community please feel free to comment, add to, or pick up any issues/PRs that are labled with Status: Up for grabs
. You & others like you are the reason all of this works! So thank you & happy coding! 🚀
By default, the github
instance is authenticated with the GITHUB_TOKEN
provided by GitHub Actions. This token has only access to the current repository. I assume that you are trying to delete a comment in another repository?
I would recommend to register a GitHub App with the needed permissions, install the app on the repositories you need it to have access to, and create an installation access token using https://github.com/actions/create-github-app-token, then pass that token to actions/github-script
For further questions, can you file an issue in https://github.com/actions/github-script?
Just for the record any action is taken on the repository the workflow on, is running as the corresponding variables are taken from the current context
owner: context.repo.owner,
repo: context.repo.repo,
What happened?
I am trying to conditionally delete comments through the following workflow
However this fails with
Versions
Using
actions/github-script@v6
which in turn uses@octokit/core
version: 5.0.1Relevant log output
No response
Code of Conduct