Skip to content

Commit cabaebb

Browse files
[action] Update github actions on trigger and label. (#13542)
Why I did it github action will report error on forked repos. It is not by design. keep 'Approved for xxx branch' label in auto cherry pick workflow. How I did it Disable github action on folked repos. Keep 'approved for xxx' label in auto cherry pick workflow. How to verify it Which release bra
1 parent b59f388 commit cabaebb

File tree

5 files changed

+5
-1
lines changed

5 files changed

+5
-1
lines changed

.github/workflows/automerge_scan.yml

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66

77
jobs:
88
automerge_scan:
9+
if: github.repository_owner == 'sonic-net'
910
runs-on: ubuntu-latest
1011
steps:
1112
- name: Debug

.github/workflows/codeql-analysis.yml

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ on:
1414

1515
jobs:
1616
analyze:
17+
if: github.repository_owner == 'sonic-net'
1718
name: Analyze
1819
runs-on: ubuntu-latest
1920
permissions:

.github/workflows/label.yml

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ on:
2020

2121
jobs:
2222
label:
23+
if: github.repository_owner == 'sonic-net'
2324
runs-on: ubuntu-latest
2425
steps:
2526
- uses: actions/labeler@main

.github/workflows/pr_cherrypick_poststep.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,4 @@ jobs:
4646
exit 1
4747
fi
4848
gh pr edit $origin_pr_url --add-label "Included in ${base_ref} Branch"
49-
gh pr edit $origin_pr_url --remove-label "Created PR to ${base_ref} Branch,Approved for ${base_ref} Branch"
49+
gh pr edit $origin_pr_url --remove-label "Created PR to ${base_ref} Branch"

.github/workflows/semgrep.yml

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ on:
1010

1111
jobs:
1212
semgrep:
13+
if: github.repository_owner == 'sonic-net'
1314
name: Semgrep
1415
runs-on: ubuntu-latest
1516
container:

0 commit comments

Comments
 (0)