Skip to content

Commit

Permalink
Merge pull request #307 from nunnatsa/protect-github-actions
Browse files Browse the repository at this point in the history
Protect github actions
  • Loading branch information
k8s-ci-robot authored Jan 21, 2025
2 parents 5c26b98 + 401e0b7 commit d818994
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/clusterkubevirtadm-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
name: test-clusterkubevirtadm
jobs:
clusterkubevirtadm-unit_test:
if: github.repository == 'kubernetes-sigs/cluster-api-provider-kubevirt'
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/create_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ name: Upload Release Asset

jobs:
build-and-push-image:
if: github.repository == 'kubernetes-sigs/cluster-api-provider-kubevirt'
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand All @@ -24,6 +25,7 @@ jobs:
make docker-build-all
make docker-push-all
build:
if: github.repository == 'kubernetes-sigs/cluster-api-provider-kubevirt'
name: Upload Release Asset
needs: build-and-push-image
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/image_build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
- "main"
jobs:
build-and-push-image:
if: github.repository == 'kubernetes-sigs/cluster-api-provider-kubevirt'
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ jobs:
$(go env GOPATH)/bin/goveralls -coverprofile=coverprofiles/cover.coverprofile -service=github
go-linter:
if: github.repository == 'kubernetes-sigs/cluster-api-provider-kubevirt'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -57,6 +58,7 @@ jobs:
version: v1.63.4

check-gen:
if: github.repository == 'kubernetes-sigs/cluster-api-provider-kubevirt'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down

0 comments on commit d818994

Please sign in to comment.