🐛(CI) fix ci issue

- fix get secret in ci
This commit is contained in:
Jacques ROUSSEL
2024-06-07 11:35:12 +02:00
committed by rouja
parent 37f02893ed
commit e4bed84343

View File

@@ -158,13 +158,24 @@ jobs:
github.event_name != 'pull_request' github.event_name != 'pull_request'
steps: steps:
- -
name: Checkout uses: actions/create-github-app-token@v1
uses: actions/checkout@v4 id: app-token
with:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.PRIVATE_KEY }}
owner: ${{ github.repository_owner }}
repositories: "impress,secrets"
-
name: Checkout repository
uses: actions/checkout@v2
with:
submodules: recursive
token: ${{ steps.app-token.outputs.token }}
- -
name: Load sops secrets name: Load sops secrets
uses: rouja/actions-sops@main uses: rouja/actions-sops@main
with: with:
secret-file: .github/workflows/secrets.enc.env secret-file: .github/workflows/secrets/numerique-gouv/impress/secrets.enc.env
age-key: ${{ secrets.SOPS_PRIVATE }} age-key: ${{ secrets.SOPS_PRIVATE }}
- -
name: Call argocd github webhook name: Call argocd github webhook