Skip to content

Commit

Permalink
Add API key to oidc identity creation
Browse files Browse the repository at this point in the history
  • Loading branch information
geofflamrock committed Dec 14, 2023
1 parent 4dccfb7 commit f30104c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ jobs:
run: octopus user list

- name: Create OIDC identity
run: 'curl -X POST -H ''Content-Type: application/json'' -d ''{"serviceAccountId":"Users-1","name":"GitHub Actions", "issuer": "https://token.actions.githubusercontent.com", "repo:OctopusDeploy/login:pull_request"}'' ${{ env.SERVER_URL }}/api/serviceaccounts/Users-1/oidcidentities/create/v1'
run: 'curl -X POST -H ''X-Octopus-ApiKey: ${{ env.ADMIN_API_KEY }}'' -H ''Content-Type: application/json'' -d ''{"serviceAccountId":"Users-1","name":"GitHub Actions", "issuer": "https://token.actions.githubusercontent.com", "repo:OctopusDeploy/login:pull_request"}'' ${{ env.SERVER_URL }}/api/serviceaccounts/Users-1/oidcidentities/create/v1'

- name: Get OIDC identity details
run: |
Expand Down

0 comments on commit f30104c

Please sign in to comment.