Skip to content

Commit

Permalink
Skip the audit action on forks (#793)
Browse files Browse the repository at this point in the history
On forked repositories, the `audit` job fails daily with:

    Error: Issues are disabled for this repo

This change adds a guard so that this run is skipped when the repo owner
is not `kube-rs`. This prevents daily GitHub notifications about action
failures.

Signed-off-by: Oliver Gould <[email protected]>
  • Loading branch information
olix0r authored Jan 26, 2022
1 parent 7b3c216 commit 3d5f90d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:

jobs:
audit:
if: ${{ github.repository_owner == 'kube-rs' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down

0 comments on commit 3d5f90d

Please sign in to comment.