Skip to content

Commit

Permalink
chore(secrets): adding GHA to sync NPM_AUTH_TOKEN to spinnaker/spinna…
Browse files Browse the repository at this point in the history
…ker repo
  • Loading branch information
link108 committed Jul 9, 2024
1 parent 2eec4a5 commit 8a557d6
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/sync-secrets.yml
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit 8a557d6

Please sign in to comment.