Files
frielith_discord_bot/.gitea/workflows/infisical-secrets.yml
Aydent 362220d755
All checks were successful
List Infisical Secrets / list-secrets (push) Successful in 14s
simple secret
2026-01-25 14:26:46 +01:00

35 lines
1.1 KiB
YAML

name: List Infisical Secrets
on:
push:
branches: [ main ]
workflow_dispatch:
jobs:
list-secrets:
runs-on: ubuntu-latest
steps:
- name: Fetch Infisical Secrets
uses: https://gitea.lemarechal.eu/actions/infisical-secrets-fetcher@main
with:
client_id: ${{ secrets.INFISICAL_CLIENT_ID }}
client_secret: ${{ secrets.INFISICAL_CLIENT_SECRET }}
project_id: ${{ secrets.INFISICAL_PROJECT_ID }}
secret_path: '/'
domain: 'https://infisical.lemarechal.eu'
secrets: "DISCORD_TOKEN"
- name: Display Secrets (Masked)
run: |
echo "Secrets fetched and injected as environment variables."
# Gitea will automatically mask the values of these variables in the logs
env | grep -v "GITHUB_" | grep -v "GITEA_" | sort
- name: Verify DISCORD_TOKEN
run: |
if [ -z "$DISCORD_TOKEN" ]; then
echo "❌ DISCORD_TOKEN is missing!"
exit 1
fi
echo "✅ DISCORD_TOKEN is present in environment (Length: ${#DISCORD_TOKEN})"