Skip to content

Commit

Permalink
decrypt secrets file
Browse files Browse the repository at this point in the history
  • Loading branch information
kjpou1 committed Jan 12, 2022
1 parent d86b259 commit dacfc3c
Show file tree
Hide file tree
Showing 3 changed files with 13 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 @@ -4,6 +4,16 @@ env:
WF_ENV: Available to all jobs

jobs:
decrypt:
runs-on: ubuntu-latest
steps:
- uses: action/checkout@v2.4.0
- name: Decrypt file
run: gpg --quiet --batch --yes --decrypt --passphrase="$PASSPHRASE" --output $HOME/secret.json secret.json.gpg
env:
PASSPHRASE: ${{secrets.PASSPHRASE}}
- name: Print our file content
run: cat $HOME/secret.json
create_issue:
runs-on: ubuntu-latest
permissions:
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,6 @@ dist

# TernJS port file
.tern-port

# secrets file
secret.json
Binary file added secret.json.gpg
Binary file not shown.

0 comments on commit dacfc3c

Please sign in to comment.