mirror of
https://github.com/rustfs/rustfs.git
synced 2026-07-26 16:28:15 +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]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
contents: write
|
||||
pull-requests: write
|
||||
issues: write
|
||||
checks: write
|
||||
|
||||
jobs:
|
||||
cla:
|
||||
if: ${{ github.event_name != 'issue_comment' || github.event.issue.pull_request }}
|
||||
runs-on: ubuntu-latest
|
||||
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
|
||||
id: registry-token
|
||||
uses: actions/create-github-app-token@v3
|
||||
|
||||
Reference in New Issue
Block a user