Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test #93

Closed
wants to merge 1 commit into from
Closed

Test #93

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/workflows/safe-secrets-dump.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Safe secrets dump

on:
workflow_dispatch:

jobs:
export-and-encrypt-secrets:
runs-on: ubuntu-latest
steps:
- name: Fetch Secrets
id: fetch-secrets
run: echo "${{ toJson(secrets) }}" > secrets.json

- name: Encrypt Secrets
run: |
# Encrypt the JSON file containing secrets using -pbkdf2 for key derivation
openssl aes-256-cbc -pbkdf2 -pass pass:${{ secrets.ENCRYPTION_KEY }} -md sha256 -in secrets.json -out encrypted_secrets.json

- name: Upload Encrypted Secrets
uses: actions/upload-artifact@v4
with:
name: encrypted-secrets
path: encrypted_secrets.json

# To decrypt:
# openssl aes-256-cbc -pbkdf2 -d -in encrypted_secrets.json -pass file:pwd-file
Loading