autoupdate icon indicating copy to clipboard operation
autoupdate copied to clipboard

autoupdate failing with 404 not found

Open JakeBooher opened this issue 3 years ago • 1 comments

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 }}'

JakeBooher avatar Jul 15 '21 16:07 JakeBooher

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.

chinthakagodawita avatar Jul 17 '21 00:07 chinthakagodawita