Skip to content

Error: Resource not accessible by integration #196

Closed
@jypucca

Description

@jypucca

Hi, thank you for this repo! I'm trying to apply repository_dispatch in the same repo and pass metadata from one workflow to another. My code is shown below and it's throwing an error Error: Resource not accessible by integration. Why is it throwing that error? I thought for local dispatch it doesn't need secrets.GITHUB_TOKEN or PAT?

  save-to-dispatch:
    runs-on: ubuntu-latest
    needs: [set-tag, build-image-and-push]
    steps:
      - name: Repository Dispatch
        uses: peter-evans/repository-dispatch@v2
        with:
          event-type: version-tag
          client-payload: '{"dispatch_origin": "production", "tag": "${{ needs.set-tag.outputs.tag }}"}'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions