Skip to content

Commit e4bed84

Browse files
committed
🐛(CI) fix ci issue
- fix get secret in ci
1 parent 37f0289 commit e4bed84

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

.github/workflows/docker-hub.yml

+14-3
Original file line numberDiff line numberDiff line change
@@ -158,13 +158,24 @@ jobs:
158158
github.event_name != 'pull_request'
159159
steps:
160160
-
161-
name: Checkout
162-
uses: actions/checkout@v4
161+
uses: actions/create-github-app-token@v1
162+
id: app-token
163+
with:
164+
app-id: ${{ secrets.APP_ID }}
165+
private-key: ${{ secrets.PRIVATE_KEY }}
166+
owner: ${{ github.repository_owner }}
167+
repositories: "impress,secrets"
168+
-
169+
name: Checkout repository
170+
uses: actions/checkout@v2
171+
with:
172+
submodules: recursive
173+
token: ${{ steps.app-token.outputs.token }}
163174
-
164175
name: Load sops secrets
165176
uses: rouja/actions-sops@main
166177
with:
167-
secret-file: .github/workflows/secrets.enc.env
178+
secret-file: .github/workflows/secrets/numerique-gouv/impress/secrets.enc.env
168179
age-key: ${{ secrets.SOPS_PRIVATE }}
169180
-
170181
name: Call argocd github webhook

0 commit comments

Comments
 (0)