Compare commits

..

3 Commits

Author SHA1 Message Date
Xun Jiang/Bruce Jiang
1005067c7b Merge pull request #9755 from reasonerjt/cp-gitaction-fix-1.18
Some checks failed
Run the E2E test on kind / get-go-version (push) Failing after 53s
Run the E2E test on kind / build (push) Has been skipped
Run the E2E test on kind / setup-test-matrix (push) Successful in 3s
Run the E2E test on kind / run-e2e-test (push) Has been skipped
Main CI / get-go-version (push) Failing after 11s
Main CI / Build (push) Has been skipped
Cherry pick fixes to git actions to 1.18 branch
2026-04-27 23:08:00 +08:00
Daniel Jiang
552848c286 Fix error in auto-request-review action
Per action.yml of the action, the token is required.
e89da1a8cd/action.yml (L8)

Signed-off-by: Daniel Jiang <daniel.jiang@broadcom.com>
2026-04-27 22:35:08 +08:00
Daniel Jiang
a906ab3066 Set permissions to the actions
This commit update the actions  "Auto Assign Author", "Auto Label PRs",
and  "Auto Request Review"

Signed-off-by: Daniel Jiang <daniel.jiang@broadcom.com>
2026-04-27 22:35:08 +08:00
3 changed files with 13 additions and 3 deletions

View File

@@ -7,6 +7,10 @@ on:
pull_request_target:
types: [opened, reopened, ready_for_review]
permissions:
contents: read
pull-requests: write
jobs:
# Automatically assigns reviewers and owner
add-reviews:
@@ -16,4 +20,3 @@ jobs:
uses: kentaro-m/auto-assign-action@v2.0.0
with:
configuration-path: ".github/auto-assignees.yml"
repo-token: "${{ secrets.GITHUB_TOKEN }}"

View File

@@ -8,6 +8,10 @@ on:
pull_request_target:
types: [opened, reopened, synchronize, ready_for_review]
permissions:
contents: read
pull-requests: write
jobs:
# Automatically labels PRs based on file globs in the change.
triage:
@@ -15,5 +19,4 @@ jobs:
steps:
- uses: actions/labeler@v5
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
configuration-path: .github/labeler.yml

View File

@@ -5,6 +5,10 @@ on:
pull_request_target:
types: [opened, ready_for_review, reopened]
permissions:
contents: read
pull-requests: write
jobs:
auto-request-review:
name: Auto Request Review
@@ -13,5 +17,5 @@ jobs:
- name: Request a PR review based on files types/paths, and/or groups the author belongs to
uses: necojackarc/auto-request-review@v0.13.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
config: .github/auto-assignees.yml
token: ${{ secrets.GITHUB_TOKEN }}