Skip to content

"Access Denied" when adding pull request to asana task #28

@cogerk

Description

@cogerk

Hi All,

After following the steps here: https://github.com/Asana/comment-on-task-github-action

I am getting an "access denied" in Asana as shown below:

Image

Summary of what I did:

  1. generate secret token: https://github.integrations.asana.plus/auth?domainId=ghactions.
  2. set up secret as ASANA_SECRET in my organization's private repo
  3. add following new .yaml file in .github/workflows directory of the repo:
# this enables asana tasks to be linked to pull requests
# copied from: https://github.com/marketplace/actions/attach-pull-request-to-asana-task
on:
  pull_request:
    types: [opened, reopened]

jobs:
  create-asana-attachment-job:
    runs-on: ubuntu-latest
    name: Create pull request attachments on Asana tasks
    steps:
      - name: Create pull request attachments
        uses: Asana/create-app-attachment-github-action@latest
        id: postAttachment
        with:
          asana-secret: ${{ secrets.ASANA_SECRET }}
      - name: Log output status
        run: echo "Status is ${{ steps.postAttachment.outputs.status }}"
  1. commit/push/merge new yaml file to main
  2. add/authenticate github app to asana project

what am I missing? is there a way to see a log and see what if this yml file is throwing an error?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions