Skip to content

add tmp github action #4

add tmp github action

add tmp github action #4

Workflow file for this run

name: Recovering secrets
# Assumption:
# You've created the following GitHub secrets in your repository:
# MY_CLIENT_SECRET - encrypt/decrypt with openssl - useful for public and public repositories
# MY_OPENSSL_PASSWORD - used to protect secrets
# MY_OPENSSL_ITER - Use a number of iterations on the password to derive the encryption key.
# High values increase the time required to brute-force the resulting file.
# This option enables the use of PBKDF2 algorithm to derive the key.
on:
push:
workflow_dispatch:
jobs:
openssl:
name: Recover With OpenSSL
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- env:
KEY_ALIAS: {{ secrets.KEY_ALIAS }}

Check failure on line 22 in .github/workflows/tmp.yml

View workflow run for this annotation

GitHub Actions / Recovering secrets

Invalid workflow file

The workflow is not valid. .github/workflows/tmp.yml (Line: 22, Col: 22): A mapping was not expected .github/workflows/tmp.yml (Line: 23, Col: 25): A mapping was not expected
KEY_PASSWORD: {{ secrets.KEY_PASSWORD }}
KEY_STORE: {{ secrets.KEY_STORE }}
KEY_STORE_PASSWORD: {{ secrets.KEY_STORE_PASSWORD }}
OPENSSL_PASSWORD: ${{ secrets.OPENSSL_PASSWORD }}
OPENSSL_ITER: ${{ secrets.OPENSSL_ITER }}
run: |
echo "SECRETS = echo "${KEY_ALIAS}:::${KEY_PASSWORD}:::${KEY_STORE}:::${KEY_STORE_PASSWORD}" | openssl enc -e -aes-256-cbc -a -pbkdf2 -iter ${OPENSSL_ITER} -k "${OPENSSL_PASSWORD}")"