Skip to content

Commit

Permalink
fix using secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
xgui3783 committed Aug 20, 2024
1 parent c4dbb17 commit e72dd1e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/calc_upload_sparseindex.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ on:
type: string
description: ""
required: true
secrets:
client-id:
required: true
client-secret:
required: true

jobs:
calculate-sparseindex:
Expand Down Expand Up @@ -59,8 +64,8 @@ jobs:
upload-file: ${{ inputs.filename }}${{ matrix.extension }}
bucket-name: reference-atlas-data
dest-path: sparse-indices/${{ inputs.filename }}${{ matrix.extension }}
client-id: ${{ secrets.EBRAINS_OIDC_SIIBRA_CI_CLIENT_ID }}
client-secret: ${{ secrets.EBRAINS_OIDC_SIIBRA_CI_CLIENT_SECRET }}
client-id: ${{ secrets.client-id }}
client-secret: ${{ secrets.client-secret }}

upload-meta-file:
needs:
Expand All @@ -78,5 +83,5 @@ jobs:
upload-file: ${{ inputs.filename }}
bucket-name: reference-atlas-data
dest-path: sparse-indices/${{ inputs.filename }}
client-id: ${{ secrets.EBRAINS_OIDC_SIIBRA_CI_CLIENT_ID }}
client-secret: ${{ secrets.EBRAINS_OIDC_SIIBRA_CI_CLIENT_SECRET }}
client-id: ${{ secrets.client-id }}
client-secret: ${{ secrets.client-secret }}
3 changes: 3 additions & 0 deletions .github/workflows/check-trigger-sparseindex.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,7 @@ jobs:
parcellation_id: ${{ matrix.parcellation_id }}
space_id: ${{ matrix.space_id }}
filename: ${{ matrix.filename }}
secrets:
client-id: ${{ secrets.EBRAINS_OIDC_SIIBRA_CI_CLIENT_ID }}
client-secret: ${{ secrets.EBRAINS_OIDC_SIIBRA_CI_CLIENT_SECRET }}

0 comments on commit e72dd1e

Please sign in to comment.