Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SWI-2171 Updated DX_GITHUB_TOKEN for vault provider action #159

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 13 additions & 6 deletions .github/workflows/listener.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,26 @@ 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
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: |
Expand All @@ -34,17 +41,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 }},
Expand All @@ -57,7 +64,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 }},
Expand Down