29 lines
654 B
YAML
29 lines
654 B
YAML
name: blackbox-decrypt
|
|
on:
|
|
workflow_call:
|
|
secrets:
|
|
gpg-key:
|
|
required: true
|
|
type: string
|
|
|
|
jobs:
|
|
blackbox-decrypt:
|
|
name: Blackbox Decrypt
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Clone blackbox repo
|
|
uses: actions/checkout@v4
|
|
with:
|
|
repository: xaked/blackbox
|
|
path: /tmp/blackbox
|
|
ref: master
|
|
- name: Decrypt secrets
|
|
shell: bash
|
|
run: |
|
|
cd /tmp/blackbox || exit 1;
|
|
make copy-install;
|
|
echo ${{ secrets.gpg-key }} | base64 -d | gpg --import;
|
|
cd ${{ github.workspace }};
|
|
blackbox_decrypt_all_files;
|