Files
frielith_discord_bot/.gitea/workflows/infisical-secrets.yml
aydent f98468df12
Some checks failed
List Infisical Secrets / list-secrets (push) Failing after 2m18s
feat: replace manual Infisical CLI secret fetching with the official Infisical secrets action.
2026-01-24 23:14:03 +01:00

28 lines
901 B
YAML

name: List Infisical Secrets
on:
push:
branches: [ main ]
workflow_dispatch:
jobs:
list-secrets:
runs-on: ubuntu-latest
steps:
- name: Fetch Secrets from Infisical
uses: https://github.com/Infisical/secrets-action@v1.0.7
with:
client-id: ${{ secrets.INFISICAL_CLIENT_ID }}
client-secret: ${{ secrets.INFISICAL_CLIENT_SECRET }}
project-id: ${{ secrets.INFISICAL_PROJECT_ID }}
env-slug: prod
secret-path: /Discord_bot
domain: https://infisical.lemarechal.eu
- name: Display Secrets
run: |
echo "Secrets fetched and injected as environment variables."
# Note: Gitea/GitHub will mask the values of these secrets in the logs.
# To see which keys were fetched, we can list the environment variables.
env | grep -v "GITHUB_" | grep -v "GITEA_" | sort