Skip to content
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

autoupdate failing with 404 not found #205

Open
JakeBooher opened this issue Jul 15, 2021 · 1 comment
Open

autoupdate failing with 404 not found #205

JakeBooher opened this issue Jul 15, 2021 · 1 comment

Comments

@JakeBooher
Copy link

Handling push event on ref 'refs/heads/develop'
PR-30
  Evaluating pull request #30...
  Error: Not Found

PR 30 does, in fact, exist so not sure what exactly is going on here internally. Using latest version. The PR is from a fork

This is my workflow yaml:

name: autoupdate
on:
  push:
    branches:
      - develop

jobs:
  autoupdate:
    name: autoupdate
    runs-on: ubuntu-latest
    steps:
      - uses: docker://chinthakagodawita/autoupdate-action:v1.5.0
        env:
          GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
@chinthakagodawita
Copy link
Owner

Hey @JakeBooher - unfortunately autoupdate won't work against a PR from a fork. This is because the GITHUB_TOKEN that Actions runs as doesn't have access to write to the fork.

The only way around this is to use a Personal Access Token that has access to both repositories (e.g. if both repos were in an organisation, you could use a PAT from an organisation owner / service account).

That said - it shouldn't be throwing a 404, let me see what I can do to make the messaging around this better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants