Skip to content

Commit

Permalink
gpg decryption
Browse files Browse the repository at this point in the history
  • Loading branch information
cabiamdos committed Mar 29, 2024
1 parent 1ffb127 commit 825bf6c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@ env:
WF_ENV: Avaible to all jobs

jobs:
decrypt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Decrypt file
run: gpg --quiet --batch --yes --decrypt --passphrase="${PASSPHRASE}" --output $HOME/secret_decrypted.json secret.json.gpg
env:
PASSPHRASE: ${{ secrets.PASSPHRASE }}
- name: Print our file contents
run: cat $HOME/secret_decrypted.json
create_issue:
runs-on: ubuntu-latest
permissions:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
secret.json
Binary file added secret.json.gpg
Binary file not shown.

0 comments on commit 825bf6c

Please sign in to comment.