nextjs-starter icon indicating copy to clipboard operation
nextjs-starter copied to clipboard

Store reports - Action failed with "not found deploy key or tokens"

Open bremnes opened this issue 3 years ago • 2 comments

Following the tutorial at https://docs.microsoft.com/en-us/azure/static-web-apps/deploy-nextjs causes the github action/build Playwright tests to fail on the steps "store reports" and "notify dashboard". I'm not familiar with these actions, but it looks like there is some publishing going on to mspnp/intern-js-pipeline which I'm assuming all users don't have access to.

...
    - name: Publish to external repo
      if: always()
      uses: peaceiris/[email protected]
      with:
        external_repository: mspnp/intern-js-pipeline
        publish_branch: gh-pages
        personal_token: ${{ secrets.PAT_TOKEN }}
        publish_dir: ${{steps.download.outputs.download-path}}
        destination_dir: test-reports/${{ github.repository }}
        keep_files: true
        user_name: "github-actions[bot]"
        user_email: "github-actions[bot]@users.noreply.github.com"
...

image

Related PR: https://github.com/staticwebdev/nextjs-starter/pull/34

Misc.:

  • The forked repository is a private repository
  • Setup between github and Azure Static Web App works fine, and the workflow in .github\workflow\azure-static-web-apps-<random>.yml deploys the static code to both production and preview deployments fine.

Let me know if you need any more input.

bremnes avatar Aug 15 '22 16:08 bremnes

Hitting the same issue with the blazor variation of the same get started topic.

nimakamoosi avatar Dec 21 '22 02:12 nimakamoosi

All samples should have the test scripts and related actions removed now - do let me know if you continue to see issues.

nitya avatar Mar 18 '23 00:03 nitya