cloudflare / pages-action

MIT License
468 stars 95 forks source link

Error: Parameter token or opts.auth is required #41

Closed rk-p2p closed 1 year ago

rk-p2p commented 1 year ago

Hi! There is a bug with v1.2.0 Error: Parameter token or opts.auth is required My workflow's step:

...
      - name: publish
        uses: cloudflare/pages-action@v1.2.0
        with:
          apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
          accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
          projectName: xxx
          directory: .
          # Optional: Enable this if you want to have GitHub Deployments triggered
          #gitHubToken: ${{ secrets.GITHUB_TOKEN }}
...
IanVS commented 1 year ago

Has anyone found a workaround to this, or do we need to just keep using 1.1.0 for now?

Edit: Looks like this is coming from creating an octokit when no github token is provided. I pushed up a PR with a fix, and I guess in the meantime we'll need to provide a github token.