mirror of
https://github.com/corda/corda.git
synced 2025-01-18 02:39:51 +00:00
ES-1622: Switch corda/corda Github Actions to use Github App for authentication (#7577)
* Update jira_assign_issue.yml * Update jira_close_issue.yml * Update jira_create_issue.yml * Update .github/workflows/jira_assign_issue.yml * Update .github/workflows/jira_assign_issue.yml --------- Co-authored-by: Waldemar Żurowski <45210402+wzur-r3@users.noreply.github.com>
This commit is contained in:
parent
afbd39660b
commit
52e43d4223
8
.github/workflows/jira_assign_issue.yml
vendored
8
.github/workflows/jira_assign_issue.yml
vendored
@ -8,12 +8,18 @@ jobs:
|
||||
sync_assigned:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Generate a token
|
||||
id: generate_token
|
||||
uses: actions/create-github-app-token@v1
|
||||
with:
|
||||
app-id: ${{ secrets.AUTH_APP_ID }}
|
||||
private-key: ${{ secrets.AUTH_APP_PK }}
|
||||
- name: Assign
|
||||
uses: corda/jira-sync-assigned-action@master
|
||||
with:
|
||||
jiraBaseUrl: ${{ secrets.JIRA_BASE_URL }}
|
||||
jiraEmail: ${{ secrets.JIRA_USER_EMAIL }}
|
||||
jiraToken: ${{ secrets.JIRA_API_TOKEN }}
|
||||
token: ${{ secrets.GH_TOKEN }}
|
||||
token: ${{ steps.generate_token.outputs.token }}
|
||||
owner: corda
|
||||
repository: corda
|
||||
|
8
.github/workflows/jira_close_issue.yml
vendored
8
.github/workflows/jira_close_issue.yml
vendored
@ -8,12 +8,18 @@ jobs:
|
||||
sync_closed:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Generate a token
|
||||
id: generate_token
|
||||
uses: actions/create-github-app-token@v1
|
||||
with:
|
||||
app-id: ${{ secrets.AUTH_APP_ID }}
|
||||
private-key: ${{ secrets.AUTH_APP_PK }}
|
||||
- name: Close
|
||||
uses: corda/jira-sync-closed-action@master
|
||||
with:
|
||||
jiraBaseUrl: https://r3-cev.atlassian.net
|
||||
jiraEmail: ${{ secrets.JIRA_USER_EMAIL }}
|
||||
jiraToken: ${{ secrets.JIRA_API_TOKEN }}
|
||||
token: ${{ secrets.GH_TOKEN }}
|
||||
token: ${{ steps.generate_token.outputs.token }}
|
||||
owner: corda
|
||||
repository: corda
|
||||
|
9
.github/workflows/jira_create_issue.yml
vendored
9
.github/workflows/jira_create_issue.yml
vendored
@ -10,6 +10,13 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Generate a token
|
||||
id: generate_token
|
||||
uses: actions/create-github-app-token@v1
|
||||
with:
|
||||
app-id: ${{ secrets.AUTH_APP_ID }}
|
||||
private-key: ${{ secrets.AUTH_APP_PK }}
|
||||
|
||||
- name: Jira Create issue
|
||||
id: create
|
||||
uses: corda/jira-create-issue-action@master
|
||||
@ -30,7 +37,7 @@ jobs:
|
||||
- name: Create comment
|
||||
uses: peter-evans/create-or-update-comment@v1
|
||||
with:
|
||||
token: ${{ secrets.GH_TOKEN }}
|
||||
token: ${{ steps.generate_token.outputs.token }}
|
||||
issue-number: ${{ github.event.issue.number }}
|
||||
body: |
|
||||
Automatically created Jira issue: ${{ steps.create.outputs.issue }}
|
||||
|
Loading…
Reference in New Issue
Block a user