newrelic-experimental / gha-new-relic-exporter

18 stars 14 forks source link

pat to dash #7

Closed butchcarpio closed 1 year ago

butchcarpio commented 1 year ago

is the config the same if i use dash key?

butchcarpio commented 1 year ago

im not sure if im doing this correct, but i forked the repo in our org and put this on my application repo workflow. `name: GHA-NR Exporter on: workflow_run: workflows: ['*'] types: [completed] # defaults to run on every completed workflow run event

env: GHA_TOKEN: ${{ secrets.DASH_KEY }} NEW_RELIC_LICENSE_KEY: ${{ secrets.NR_KEY }} GHA_RUN_ID: ${{ github.event.workflow_run.id }} GHA_RUN_NAME: ${{ github.event.workflow_run.name }}

jobs: new-relic-exporter: name: new-relic-exporter runs-on: ubuntu-latest if: ${{ always() }} steps:

getting bad credentials. we dont use PAT by the way.

butchcarpio commented 1 year ago

got this working now since GITHUB_TOKEN is generated automatically, then i just need to authenticate using the DASH API key.