Skip to content

[#88007] Install jq, try to decrypt key #311

[#88007] Install jq, try to decrypt key

[#88007] Install jq, try to decrypt key #311

Workflow file for this run

on: [push]
name: test
jobs:
centos:
container: centos:8
runs-on: [self-hosted, Linux, X64]
env:
GHA_EXTERNAL_DISK: "auxdisk"
GHA_PREEMPTIBLE: "false"
KEYS: "${{ secrets.KEYS }}"
steps:
- run: df -h .
- run: df -h /mnt/aux
- run: ls -alh /mnt/aux
- run: |
mkdir -p jq
wget --progress=dot:mega https://github.com/jqlang/jq/releases/download/jq-1.8.1/jq-linux-amd64 -O jq/jq
chmod +x jq/jq
export PATH=$PWD/jq:$PATH
echo "$KEYS"
export HASH="$(echo lorem_ipsum.age | sha256sum | awk '{print $1}')"
echo $HASH
echo "$KEYS" | jq -r .\"$HASH\"
echo "$KEYS" | jq -r .\"$HASH\" | base64 -d
- run: _secret_custom_get_tools_v2
- run: ls -lah .