Skip to content

Commit 5d1a893

Browse files
committed
Use repo secrets
1 parent b8cfbdf commit 5d1a893

File tree

1 file changed

+5
-14
lines changed

1 file changed

+5
-14
lines changed

.github/workflows/update-sdk.yml

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,14 @@ jobs:
1111
runs-on: ${{ fromJSON(vars.SWI_GLORG_UBUNTU_2204) }}
1212
outputs:
1313
generate: ${{ steps.compare.outputs.generate }}
14-
permissions:
15-
id-token: write
16-
contents: write
1714
steps:
18-
- name: Get Github and Jira Tokens from Vault
19-
uses: Bandwidth/vault-provider-action@v1
20-
with:
21-
secrets: |
22-
workloads/prod/software_infra::secrets:dx-github-token:dx-github-token@1::DX_GITHUB_TOKEN
23-
workloads/prod/software_infra::secrets:SDLC-Enforcer-Prod:JIRA_TOKEN@9::JIRA_TOKEN
24-
workloads/prod/software_infra::secrets:SDLC-Enforcer-Prod:JIRA_USERNAME@9::JIRA_USERNAME
25-
2615
- name: Checkout
2716
uses: actions/checkout@v3
2817

2918
- name: Combine Product Specs
3019
uses: Bandwidth/[email protected]
3120
with:
32-
token: ${{ env.DX_GITHUB_TOKEN }}
21+
token: ${{ secrets.DX_GITHUB_TOKEN }}
3322

3423
- name: Determine if a New SDK is Needed
3524
id: compare
@@ -67,14 +56,16 @@ jobs:
6756
env:
6857
LANGUAGE: Java
6958
EPIC: SWI-1876
59+
JIRA_USERNAME: ${{ secrets.JIRA_USERNAME }}
60+
JIRA_TOKEN: ${{ secrets.JIRA_TOKEN }}
7061

7162
- name: Build SDK
7263
id: build
7364
if: ${{ startsWith(steps.jira.outputs.jira-key, 'SWI') }}
7465
uses: Bandwidth/[email protected]
7566
with:
7667
branch-name: ${{ steps.jira.outputs.jira-key }}
77-
token: ${{ env.DX_GITHUB_TOKEN }}
68+
token: ${{ secrets.DX_GITHUB_TOKEN }}
7869
openapi-generator-version: 7.0.0
7970
language: java
8071
config: ./openapi-config.yml
@@ -95,7 +86,7 @@ jobs:
9586
run: |
9687
gh pr create -B main -H Bandwidth:${{ steps.jira.outputs.jira-key }} -t '${{ steps.jira.outputs.jira-key }} Update SDK Based on Recent Spec Changes' -b 'Auto-generated by Update SDK Workflow'
9788
env:
98-
GITHUB_TOKEN: ${{ env.DX_GITHUB_TOKEN }}
89+
GITHUB_TOKEN: ${{ secrets.DX_GITHUB_TOKEN }}
9990

10091
notify_for_failures:
10192
name: Notify for Failures

0 commit comments

Comments
 (0)