From 0a651a90e9a9a3e1e94ecd8d2cc49d6253fbf5c6 Mon Sep 17 00:00:00 2001 From: Ashley Harrison Date: Thu, 18 Jan 2024 15:29:40 +0000 Subject: [PATCH] Chore: use `GITHUB_TOKEN` in metrics-collector action (#80795) use GITHUB_TOKEN --- .github/workflows/metrics-collector.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/metrics-collector.yml b/.github/workflows/metrics-collector.yml index 77285161533..2e22a830a88 100644 --- a/.github/workflows/metrics-collector.yml +++ b/.github/workflows/metrics-collector.yml @@ -25,7 +25,7 @@ jobs: id: check shell: bash run: | - if [ -n "${{ (secrets.GRAFANA_MISC_STATS_API_KEY != '' && secrets.GH_BOT_ACCESS_TOKEN != '') || '' }}" ]; then + if [ -n "${{ (secrets.GRAFANA_MISC_STATS_API_KEY != '') || '' }}" ]; then echo "has-secrets=1" >> "$GITHUB_OUTPUT" fi @@ -46,5 +46,5 @@ jobs: uses: ./actions/metrics-collector with: metricsWriteAPIKey: ${{secrets.GRAFANA_MISC_STATS_API_KEY}} - token: ${{secrets.GH_BOT_ACCESS_TOKEN}} + token: ${{secrets.GITHUB_TOKEN}} configPath: "metrics-collector"