Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/cargo-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ permissions:

jobs:
create-cargo-update-pr:
# This workflow is restricted to the main repository (model-checking/kani) to prevent
# unnecessary PRs being created in forks. The cargo update action should only run in
# the main repository context.
if: github.repository == 'model-checking/kani'
runs-on: ubuntu-22.04
steps:
- name: Checkout Kani
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/cbmc-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ permissions:
pull-requests: write

jobs:
create-cargo-update-pr:
create-cbmc-update-pr:
# This workflow is restricted to the main repository (model-checking/kani) to prevent
# unnecessary PRs being created in forks. The CBMC update action should only run in
# the main repository context.
if: github.repository == 'model-checking/kani'
runs-on: ubuntu-22.04
steps:
- name: Checkout Kani
Expand Down Expand Up @@ -75,7 +79,7 @@ jobs:
Upgrade CBMC to its latest release.

- name: Create Issue
if: ${{ env.next_step == 'create_issue' && github.repository_owner == 'model-checking' }}
if: ${{ env.next_step == 'create_issue' }}
uses: dacbd/create-issue-action@main
with:
token: ${{ github.token }}
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/toolchain-upgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ permissions:

jobs:
create-toolchain-pr:
# This workflow is restricted to the main repository (model-checking/kani) to prevent
# unnecessary PRs being created in forks. The toolchain upgrade action should only run in
# the main repository context.
if: github.repository == 'model-checking/kani'
runs-on: ubuntu-22.04
steps:
- name: Checkout Kani
Expand Down Expand Up @@ -68,7 +72,7 @@ jobs:
})

- name: Create Issue
if: ${{ env.next_step == 'create_issue' && github.repository_owner == 'model-checking' }}
if: ${{ env.next_step == 'create_issue' }}
uses: dacbd/create-issue-action@main
with:
token: ${{ github.token }}
Expand Down
Loading