-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated DX_GITHUB_TOKEN for vault provider action
- Loading branch information
Showing
1 changed file
with
14 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,19 +10,27 @@ jobs: | |
if: ${{ github.event.action == 'Build' }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Get GH Access Token | ||
uses: Bandwidth/vault-provider-action@v1 | ||
with: | ||
identity-source: repo | ||
durable-team-name: BAND SWI | ||
artifactory-access-token-type: readers | ||
export-github-pat: true | ||
|
||
- uses: actions/checkout@v2 | ||
|
||
- name: Build SDK and Open PR | ||
uses: Bandwidth/[email protected] | ||
with: | ||
branch-name: ${{ github.event.client_payload.branchName }} | ||
username: ${{ secrets.DX_GITHUB_USERNAME }} | ||
token: ${{ secrets.DX_GITHUB_TOKEN }} | ||
token: ${{ env.GITHUB_ACCESS_TOKEN }} | ||
openapi-generator-version: v5.4.0 | ||
language: python | ||
config: ./openapi-config.yml | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.DX_GITHUB_TOKEN }} | ||
GITHUB_TOKEN: ${{ env.GITHUB_ACCESS_TOKEN }} | ||
|
||
- name: Open Pull Request | ||
run: | | ||
|
@@ -34,17 +42,17 @@ jobs: | |
echo "PR already exists for this branch" | ||
fi | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.DX_GITHUB_TOKEN }} | ||
GITHUB_TOKEN: ${{ env.GITHUB_ACCESS_TOKEN }} | ||
|
||
- name: Output PR Number | ||
id: output-pr-number | ||
run: echo "PR_NUMBER=$(hub pr list -h ${{ inputs.branch-name }} -f %I)" >> $GITHUB_ENV | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.DX_GITHUB_TOKEN }} | ||
GITHUB_TOKEN: ${{ env.GITHUB_ACCESS_TOKEN }} | ||
|
||
- uses: actions/github-script@v6 | ||
with: | ||
github-token: ${{secrets.DX_GITHUB_TOKEN}} | ||
github-token: ${{env.GITHUB_ACCESS_TOKEN}} | ||
script: | | ||
github.rest.issues.createComment({ | ||
issue_number: ${{ github.event.client_payload.prNumber }}, | ||
|
@@ -57,7 +65,7 @@ jobs: | |
uses: actions/github-script@v6 | ||
if: failure() | ||
with: | ||
github-token: ${{secrets.DX_GITHUB_TOKEN}} | ||
github-token: ${{env.GITHUB_ACCESS_TOKEN}} | ||
script: | | ||
github.rest.issues.createComment({ | ||
issue_number: ${{ github.event.client_payload.prNumber }}, | ||
|