Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
cogerk opened this issue Jan 24, 2025 · 0 comments
Open

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

cogerk opened this issue Jan 24, 2025 · 0 comments

Comments

@cogerk
Copy link

cogerk commented Jan 24, 2025

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant