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:
1515
1616jobs :
1717 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'
1822 runs-on : ubuntu-22.04
1923 steps :
2024 - name : Checkout Kani
Original file line number Diff line number Diff line change @@ -15,7 +15,11 @@ permissions:
1515 pull-requests : write
1616
1717jobs :
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'
1923 runs-on : ubuntu-22.04
2024 steps :
2125 - name : Checkout Kani
7579 Upgrade CBMC to its latest release.
7680
7781 - name : Create Issue
78- if : ${{ env.next_step == 'create_issue' && github.repository_owner == 'model-checking' }}
82+ if : ${{ env.next_step == 'create_issue' }}
7983 uses : dacbd/create-issue-action@main
8084 with :
8185 token : ${{ github.token }}
Original file line number Diff line number Diff line change @@ -16,6 +16,10 @@ permissions:
1616
1717jobs :
1818 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'
1923 runs-on : ubuntu-22.04
2024 steps :
2125 - name : Checkout Kani
6872 })
6973
7074 - name : Create Issue
71- if : ${{ env.next_step == 'create_issue' && github.repository_owner == 'model-checking' }}
75+ if : ${{ env.next_step == 'create_issue' }}
7276 uses : dacbd/create-issue-action@main
7377 with :
7478 token : ${{ github.token }}
You can’t perform that action at this time.
0 commit comments