From 40a89eb6615ae4054c2830c5d45f6cc5a8f47a1a Mon Sep 17 00:00:00 2001 From: Yuval Leibovich <89763818+yuleib@users.noreply.github.com> Date: Mon, 26 Feb 2024 15:30:32 +0200 Subject: [PATCH] Update push-releasedev-updates.yaml Signed-off-by: Yuval Leibovich <89763818+yuleib@users.noreply.github.com> --- .github/workflows/push-releasedev-updates.yaml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/push-releasedev-updates.yaml b/.github/workflows/push-releasedev-updates.yaml index b722a6dfe..c131d356e 100644 --- a/.github/workflows/push-releasedev-updates.yaml +++ b/.github/workflows/push-releasedev-updates.yaml @@ -4,6 +4,9 @@ on: push: branches: [master] +env: + GH_ACCESS_TOKEN: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }} + jobs: build: runs-on: ubuntu-latest @@ -12,8 +15,11 @@ jobs: with: ref: ${{ github.head_ref }} fetch-depth: 0 - token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }} + token: ${{ env.GH_ACCESS_TOKEN }} + - run: git config --global url.https://${{ env.GH_ACCESS_TOKEN }}@github.com/armosec/.insteadOf https://github.com/armosec/ + - run: git config --global url.https://${{ env.GH_ACCESS_TOKEN }}@github.com/kubescape/.insteadOf https://github.com/kubescape/ + - name: Run export script run: | OUTPUT=pre-release python ./scripts/export.py @@ -30,6 +36,6 @@ jobs: - name: Push changes uses: ad-m/github-push-action@master with: - github_token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }} + github_token: ${{ env.GH_ACCESS_TOKEN }} repository: kubescape/regolibrary-dev - force: true \ No newline at end of file + force: true