mirror of
https://github.com/r-freeman/workflow-with-secrets.git
synced 2024-11-14 04:15:42 +00:00
18 lines
609 B
YAML
18 lines
609 B
YAML
|
name: Decrypt Secrets
|
||
|
run-name: Workflow for decrypting secrets
|
||
|
on: [ push ]
|
||
|
|
||
|
jobs:
|
||
|
DecryptSecrets:
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- uses: actions/checkout@v4
|
||
|
- name: Decrypt secrets
|
||
|
run: ./decrypt_secret.sh
|
||
|
env:
|
||
|
SECRET_PASSPHRASE: ${{ secrets.SECRET_PASSPHRASE }}
|
||
|
# This command is just an example to show your secret being printed
|
||
|
# Ensure you remove any print statements of your secrets. GitHub does
|
||
|
# not hide secrets that use this workaround.
|
||
|
- name: Test printing your secret (Remove this step in production)
|
||
|
run: cat ./.env
|