All checks were successful
List Infisical Secrets / list-secrets (push) Successful in 17s
34 lines
1.0 KiB
YAML
34 lines
1.0 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'
|
|
|
|
- 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})"
|