Skip to content
Closed
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
6 changes: 5 additions & 1 deletion .github/workflows/build-test-push-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ jobs:
with:
go-version: ${{ steps.dotenv.outputs.GO_VERSION }}
- name: Install goveralls
if: ${{ (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) && secrets.COVERALLS_TOKEN != '' }}
run: |
go version
go install github.com/mattn/goveralls@latest
Expand All @@ -61,14 +62,15 @@ jobs:
run: |
make test
- name: Run Code Coverage
if: ${{ secrets.COVERALLS_TOKEN != '' }}
if: ${{ (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) && secrets.COVERALLS_TOKEN != '' }}
run: goveralls -shallow -coverprofile=coverage.out -service=circle-ci -repotoken ${{ secrets.COVERALLS_TOKEN }}
- name: Upload Coverage artifacts
uses: actions/upload-artifact@v4.4.0
with:
name: coverage.out
path: coverage.out
build-operator-image:
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}
runs-on: ubuntu-latest
needs: [check-formating, unit-tests]
env:
Expand Down Expand Up @@ -121,6 +123,7 @@ jobs:
COSIGN_PRIVATE_KEY: ${{ secrets.COSIGN_PRIVATE_KEY }}
COSIGN_PASSWORD: ${{ secrets.COSIGN_PASSWORD }}
vulnerability-scan:
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}
permissions:
actions: read
contents: read
Expand Down Expand Up @@ -175,6 +178,7 @@ jobs:
with:
sarif_file: 'trivy-results.sarif'
smoke-tests:
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}
needs: vulnerability-scan
strategy:
fail-fast: false
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/distroless-build-test-push-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ jobs:
with:
go-version: ${{ steps.dotenv.outputs.GO_VERSION }}
- name: Install goveralls
if: ${{ (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) && secrets.COVERALLS_TOKEN != '' }}
run: |
go version
go install github.com/mattn/goveralls@latest
Expand All @@ -55,14 +56,15 @@ jobs:
- name: Run Unit Tests
run: make test
- name: Run Code Coverage
if: ${{ secrets.COVERALLS_TOKEN != '' }}
if: ${{ (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) && secrets.COVERALLS_TOKEN != '' }}
run: goveralls -shallow -coverprofile=coverage.out -service=circle-ci -repotoken ${{ secrets.COVERALLS_TOKEN }}
- name: Upload Coverage artifacts
uses: actions/upload-artifact@v4.4.0
with:
name: coverage.out
path: coverage.out
build-operator-image:
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}
runs-on: ubuntu-latest
needs: unit-tests
env:
Expand Down Expand Up @@ -170,6 +172,7 @@ jobs:
# with:
# sarif_file: 'trivy-results.sarif'
smoke-tests:
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}
needs: build-operator-image
strategy:
fail-fast: false
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/prodsec-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ on:
- '*.md'
jobs:
semgrep:
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}
name: Semgrep Scanner
runs-on: ubuntu-24.04
env:
Expand All @@ -27,6 +28,7 @@ jobs:
- uses: actions/checkout@v3
- run: semgrep ci
FOSSA-scanner:
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}
runs-on: ubuntu-latest
env:
SPLUNK_ENTERPRISE_IMAGE: ${{ secrets.SPLUNK_ENTERPRISE_IMAGE }}
Expand All @@ -42,4 +44,4 @@ jobs:
if: ${{ secrets.FOSSA_API_TOKEN != '' }}
uses: fossas/fossa-action@main
with:
api-key: ${{secrets.FOSSA_API_TOKEN}}
api-key: ${{secrets.FOSSA_API_TOKEN}}