comment-on-task-github-action icon indicating copy to clipboard operation
comment-on-task-github-action copied to clipboard

"Access Denied" when adding pull request to asana task

Open cogerk opened this issue 1 year ago • 0 comments

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?

cogerk avatar Jan 24 '25 23:01 cogerk