33 lines
831 B
YAML
33 lines
831 B
YAML
# - name: Blackbox decrypt
|
|
# uses: https://git.palkoi.net/local/workflows/security/blackbox-decrypt.yml
|
|
# secrets:
|
|
# gpg-key: ${{ secrets.gpg-key }}
|
|
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;
|