-
-
Notifications
You must be signed in to change notification settings - Fork 126
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
Error: Resource not accessible by integration #249
Comments
I'm facing the same issue, and I also added
to my job. Here's the entire workflow file, which was copy pasted from the readme: name: 'Lint PR'
on:
pull_request_target:
types:
- opened
- edited
- synchronize
permissions:
pull-requests: read
jobs:
main:
name: Validate PR title
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
wip: true
- uses: marocchino/sticky-pull-request-comment@v2
# When the previous steps fails, the workflow would stop. By adding this
# condition you can continue the execution with the populated error message.
if: always() && (steps.lint_pr_title.outputs.error_message != null)
with:
header: pr-title-lint-error
message: |
We require pull request titles to follow the [Conventional Commits specification](https://www.conventionalcommits.org/en/v1.0.0/) and it looks like your proposed title needs to be adjusted.
Details:
```
${{ steps.lint_pr_title.outputs.error_message }}
```
# Delete a previous comment when the issue has been resolved
- if: ${{ steps.lint_pr_title.outputs.error_message == null }}
uses: marocchino/sticky-pull-request-comment@v2
with:
header: pr-title-lint-error
delete: true |
Same story here. After some testing I found that for some reason the minimum permissions set seems to be permissions:
pull-requests: read
statuses: write This fixes the workflow, but afaik it shouldn't need the |
It is related with |
Does not let pass the action. [issue](amannn/action-semantic-pull-request#249)
…ull-request Does not let pass the action. [issue](amannn/action-semantic-pull-request#249)
Describe the bug
When the action runs, I get the following error message:
I use the following job declaration, essentially comming from the docs:
Display job
My repo gives:
pull_request
andpull_request_target
. Same error.To reproduce
Follow the install instructions, and open a PR to trigger the action.
The text was updated successfully, but these errors were encountered: