File tree Expand file tree Collapse file tree 3 files changed +15
-3
lines changed Expand file tree Collapse file tree 3 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,10 @@ permissions:
15
15
16
16
jobs :
17
17
create-cargo-update-pr :
18
+ # This workflow is restricted to the main repository (model-checking/kani) to prevent
19
+ # unnecessary PRs being created in forks. The cargo update action should only run in
20
+ # the main repository context.
21
+ if : github.repository == 'model-checking/kani'
18
22
runs-on : ubuntu-22.04
19
23
steps :
20
24
- name : Checkout Kani
Original file line number Diff line number Diff line change @@ -15,7 +15,11 @@ permissions:
15
15
pull-requests : write
16
16
17
17
jobs :
18
- create-cargo-update-pr :
18
+ create-cbmc-update-pr :
19
+ # This workflow is restricted to the main repository (model-checking/kani) to prevent
20
+ # unnecessary PRs being created in forks. The CBMC update action should only run in
21
+ # the main repository context.
22
+ if : github.repository == 'model-checking/kani'
19
23
runs-on : ubuntu-22.04
20
24
steps :
21
25
- name : Checkout Kani
75
79
Upgrade CBMC to its latest release.
76
80
77
81
- name : Create Issue
78
- if : ${{ env.next_step == 'create_issue' && github.repository_owner == 'model-checking' }}
82
+ if : ${{ env.next_step == 'create_issue' }}
79
83
uses : dacbd/create-issue-action@main
80
84
with :
81
85
token : ${{ github.token }}
Original file line number Diff line number Diff line change @@ -16,6 +16,10 @@ permissions:
16
16
17
17
jobs :
18
18
create-toolchain-pr :
19
+ # This workflow is restricted to the main repository (model-checking/kani) to prevent
20
+ # unnecessary PRs being created in forks. The toolchain upgrade action should only run in
21
+ # the main repository context.
22
+ if : github.repository == 'model-checking/kani'
19
23
runs-on : ubuntu-22.04
20
24
steps :
21
25
- name : Checkout Kani
68
72
})
69
73
70
74
- name : Create Issue
71
- if : ${{ env.next_step == 'create_issue' && github.repository_owner == 'model-checking' }}
75
+ if : ${{ env.next_step == 'create_issue' }}
72
76
uses : dacbd/create-issue-action@main
73
77
with :
74
78
token : ${{ github.token }}
You can’t perform that action at this time.
0 commit comments