From 8a557d6685f92f49edbc9a6d84de442abd05e10c Mon Sep 17 00:00:00 2001 From: Cameron Motevasselani Date: Mon, 8 Jul 2024 21:13:02 -0700 Subject: [PATCH] chore(secrets): adding GHA to sync NPM_AUTH_TOKEN to spinnaker/spinnaker repo --- .github/workflows/sync-secrets.yml | 32 ++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/sync-secrets.yml diff --git a/.github/workflows/sync-secrets.yml b/.github/workflows/sync-secrets.yml new file mode 100644 index 00000000000..9e732905a24 --- /dev/null +++ b/.github/workflows/sync-secrets.yml @@ -0,0 +1,32 @@ +name: Sync Secrets + +on: + workflow_dispatch: + inputs: + dry_run: + description: 'Dry Run' + required: true + default: 'true' + type: choice + options: + - 'true' + - 'false' + +jobs: + sync-secrets: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v2 + - name: Sync Secrets + uses: jpoehnelt/secrets-sync-action@v1.9.0 + with: + SECRETS: | + ^SECRET_TO_SYNC$ + REPOSITORIES: | + ^link108/sync-secrets-to$ + DRY_RUN: ${{ github.event.inputs.dry_run }} + GITHUB_TOKEN: ${{ secrets.SYNC_TOKEN }} + env: + SECRET_TO_SYNC: ${{ secrets.NPM_AUTH_TOKEN }} +