mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-26 05:56:50 +00:00
Modify CLA workflow permissions and cleanup (#2369)
Signed-off-by: 安正超 <anzhengchao@gmail.com>
This commit is contained in:
@@ -21,26 +21,16 @@ on:
|
|||||||
types: [created]
|
types: [created]
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: write
|
||||||
|
pull-requests: write
|
||||||
|
issues: write
|
||||||
|
checks: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
cla:
|
cla:
|
||||||
if: ${{ github.event_name != 'issue_comment' || github.event.issue.pull_request }}
|
if: ${{ github.event_name != 'issue_comment' || github.event.issue.pull_request }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Create token for rustfs/rustfs
|
|
||||||
id: target-token
|
|
||||||
uses: actions/create-github-app-token@v3
|
|
||||||
with:
|
|
||||||
app-id: ${{ vars.CLA_BOT_APP_ID }}
|
|
||||||
private-key: ${{ secrets.CLA_BOT_APP_PRIVATE_KEY }}
|
|
||||||
owner: ${{ github.repository_owner }}
|
|
||||||
repositories: ${{ github.event.repository.name }}
|
|
||||||
permission-contents: read
|
|
||||||
permission-pull-requests: read
|
|
||||||
permission-issues: write
|
|
||||||
permission-checks: write
|
|
||||||
|
|
||||||
- name: Create token for rustfs/cla
|
- name: Create token for rustfs/cla
|
||||||
id: registry-token
|
id: registry-token
|
||||||
uses: actions/create-github-app-token@v3
|
uses: actions/create-github-app-token@v3
|
||||||
|
|||||||
Reference in New Issue
Block a user