From a1119201be5953abb7f1a9e65d2fbf66cd080aa2 Mon Sep 17 00:00:00 2001 From: D V Date: Thu, 1 Aug 2024 17:45:26 +0530 Subject: [PATCH] add better auth --- .github/workflows/update-landscape-tooling.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/update-landscape-tooling.yml b/.github/workflows/update-landscape-tooling.yml index c1ebc9764..fbe2dfd01 100644 --- a/.github/workflows/update-landscape-tooling.yml +++ b/.github/workflows/update-landscape-tooling.yml @@ -14,8 +14,9 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - curl -X POST \ + curl -L \ + -X POST \ -H "Accept: application/vnd.github.v3+json" \ - -H "Authorization: token $GITHUB_TOKEN" \ + -H "Authorization: Bearer $PERSONAL_ACCESS_TOKEN" \ https://api.github.com/repos/darhkvoyd/landscape/actions/workflows/update-landscape-tooling.yml/dispatches \ -d '{"ref":"automate-landscape-tooling-data"}'