Skip to content

Commit

Permalink
fix: disable trivy scans
Browse files Browse the repository at this point in the history
  • Loading branch information
matmut7 committed Sep 24, 2024
1 parent 713775b commit 72090fc
Show file tree
Hide file tree
Showing 12 changed files with 0 additions and 228 deletions.
19 changes: 0 additions & 19 deletions .github/workflows/use-ks-gh-preproduction.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ on:
kubeconfigContext:
required: false
type: string
disableTrivyScans:
required: false
type: boolean

jobs:
deploy:
Expand Down Expand Up @@ -60,19 +57,3 @@ jobs:
deployment-ok:
${{ steps.deployment.outcome == 'success' && 'true' || 'false' }}
provider: ${{ steps.deployment.outputs.provider }}

trivy:
name: 🕵️ Trivy vulnerability scanner
needs: [deploy]
runs-on: ubuntu-latest
if: ${{ ! inputs.disableTrivyScans }}
strategy:
fail-fast: false
max-parallel: 3
matrix:
imageRef: ${{ fromJson(needs.deploy.outputs.manifests-images) }}
steps:
- uses: socialgouv/workflows/actions/trivy-scan-image@v1
with:
image: ${{ matrix.imageRef }}
token: ${{ secrets.GITHUB_TOKEN }}
19 changes: 0 additions & 19 deletions .github/workflows/use-ks-gh-production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ on:
kubeconfigContext:
required: false
type: string
disableTrivyScans:
required: false
type: boolean

jobs:
deploy:
Expand Down Expand Up @@ -60,19 +57,3 @@ jobs:
deployment-ok:
${{ steps.deployment.outcome == 'success' && 'true' || 'false' }}
provider: ${{ steps.deployment.outputs.provider }}

trivy:
name: 🕵️ Trivy vulnerability scanner
needs: [deploy]
runs-on: ubuntu-latest
if: ${{ ! inputs.disableTrivyScans }}
strategy:
fail-fast: false
max-parallel: 3
matrix:
imageRef: ${{ fromJson(needs.deploy.outputs.manifests-images) }}
steps:
- uses: socialgouv/workflows/actions/trivy-scan-image@v1
with:
image: ${{ matrix.imageRef }}
token: ${{ secrets.GITHUB_TOKEN }}
19 changes: 0 additions & 19 deletions .github/workflows/use-ks-gh-review-auto.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ on:
kubeconfigContext:
required: false
type: string
disableTrivyScans:
required: false
type: boolean

jobs:
deploy:
Expand Down Expand Up @@ -60,19 +57,3 @@ jobs:
deployment-ok:
${{ steps.deployment.outcome == 'success' && 'true' || 'false' }}
provider: ${{ steps.deployment.outputs.provider }}

trivy:
name: 🕵️ Trivy vulnerability scanner
needs: [deploy]
if: ${{ ! inputs.disableTrivyScans }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
max-parallel: 3
matrix:
imageRef: ${{ fromJson(needs.deploy.outputs.manifests-images) }}
steps:
- uses: socialgouv/workflows/actions/trivy-scan-image@v1
with:
image: ${{ matrix.imageRef }}
token: ${{ secrets.GITHUB_TOKEN }}
19 changes: 0 additions & 19 deletions .github/workflows/use-ks-gh-review.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ on:
kubeconfigContext:
required: false
type: string
disableTrivyScans:
required: false
type: boolean

jobs:
deploy:
Expand Down Expand Up @@ -60,19 +57,3 @@ jobs:
deployment-ok:
${{ steps.deployment.outcome == 'success' && 'true' || 'false' }}
provider: ${{ steps.deployment.outputs.provider }}

trivy:
name: 🕵️ Trivy vulnerability scanner
needs: [deploy]
runs-on: ubuntu-latest
if: ${{ ! inputs.disableTrivyScans }}
strategy:
fail-fast: false
max-parallel: 3
matrix:
imageRef: ${{ fromJson(needs.deploy.outputs.manifests-images) }}
steps:
- uses: socialgouv/workflows/actions/trivy-scan-image@v1
with:
image: ${{ matrix.imageRef }}
token: ${{ secrets.GITHUB_TOKEN }}
19 changes: 0 additions & 19 deletions .github/workflows/use-ks-gh-with-env-preproduction.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ on:
kubeconfigContext:
required: false
type: string
disableTrivyScans:
required: false
type: boolean

jobs:
deploy:
Expand Down Expand Up @@ -62,19 +59,3 @@ jobs:
${{ steps.deployment.outcome == 'success' && 'true' || 'false' }}
provider: ${{ steps.deployment.outputs.provider }}
github-env-enabled: true

trivy:
name: 🕵️ Trivy vulnerability scanner
needs: [deploy]
runs-on: ubuntu-latest
if: ${{ ! inputs.disableTrivyScans }}
strategy:
fail-fast: false
max-parallel: 3
matrix:
imageRef: ${{ fromJson(needs.deploy.outputs.manifests-images) }}
steps:
- uses: socialgouv/workflows/actions/trivy-scan-image@v1
with:
image: ${{ matrix.imageRef }}
token: ${{ secrets.GITHUB_TOKEN }}
19 changes: 0 additions & 19 deletions .github/workflows/use-ks-gh-with-env-production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ on:
kubeconfigContext:
required: false
type: string
disableTrivyScans:
required: false
type: boolean

jobs:
deploy:
Expand Down Expand Up @@ -62,19 +59,3 @@ jobs:
${{ steps.deployment.outcome == 'success' && 'true' || 'false' }}
provider: ${{ steps.deployment.outputs.provider }}
github-env-enabled: true

trivy:
name: 🕵️ Trivy vulnerability scanner
needs: [deploy]
if: ${{ ! inputs.disableTrivyScans }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
max-parallel: 3
matrix:
imageRef: ${{ fromJson(needs.deploy.outputs.manifests-images) }}
steps:
- uses: socialgouv/workflows/actions/trivy-scan-image@v1
with:
image: ${{ matrix.imageRef }}
token: ${{ secrets.GITHUB_TOKEN }}
19 changes: 0 additions & 19 deletions .github/workflows/use-ks-gh-with-env-review-auto.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ on:
kubeconfigContext:
required: false
type: string
disableTrivyScans:
required: false
type: boolean

jobs:
deploy:
Expand Down Expand Up @@ -62,19 +59,3 @@ jobs:
${{ steps.deployment.outcome == 'success' && 'true' || 'false' }}
provider: ${{ steps.deployment.outputs.provider }}
github-env-enabled: true

trivy:
name: 🕵️ Trivy vulnerability scanner
needs: [deploy]
runs-on: ubuntu-latest
if: ${{ ! inputs.disableTrivyScans }}
strategy:
fail-fast: false
max-parallel: 3
matrix:
imageRef: ${{ fromJson(needs.deploy.outputs.manifests-images) }}
steps:
- uses: socialgouv/workflows/actions/trivy-scan-image@v1
with:
image: ${{ matrix.imageRef }}
token: ${{ secrets.GITHUB_TOKEN }}
19 changes: 0 additions & 19 deletions .github/workflows/use-ks-gh-with-env-review.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ on:
kubeconfigContext:
required: false
type: string
disableTrivyScans:
required: false
type: boolean

jobs:
deploy:
Expand Down Expand Up @@ -62,19 +59,3 @@ jobs:
${{ steps.deployment.outcome == 'success' && 'true' || 'false' }}
provider: ${{ steps.deployment.outputs.provider }}
github-env-enabled: true

trivy:
name: 🕵️ Trivy vulnerability scanner
needs: [deploy]
runs-on: ubuntu-latest
if: ${{ ! inputs.disableTrivyScans }}
strategy:
fail-fast: false
max-parallel: 3
matrix:
imageRef: ${{ fromJson(needs.deploy.outputs.manifests-images) }}
steps:
- uses: socialgouv/workflows/actions/trivy-scan-image@v1
with:
image: ${{ matrix.imageRef }}
token: ${{ secrets.GITHUB_TOKEN }}
19 changes: 0 additions & 19 deletions .github/workflows/use-ks-wh-preproduction.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ on:
required: false
type: boolean
default: true
disableTrivyScans:
required: false
type: boolean
secrets:
KUBEWEBHOOK_TOKEN:
required: true
Expand Down Expand Up @@ -52,19 +49,3 @@ jobs:
${{ steps.deployment-starting.outputs.deployment-name }}
deployment-ok:
${{ steps.deployment.outcome == 'success' && 'true' || 'false' }}

trivy:
name: 🕵️ Trivy vulnerability scanner
needs: [deploy]
if: ${{ ! inputs.disableTrivyScans }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
max-parallel: 3
matrix:
imageRef: ${{ fromJson(needs.deploy.outputs.manifests-images) }}
steps:
- uses: socialgouv/workflows/actions/trivy-scan-image@v1
with:
image: ${{ matrix.imageRef }}
token: ${{ secrets.GITHUB_TOKEN }}
19 changes: 0 additions & 19 deletions .github/workflows/use-ks-wh-production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ on:
required: false
type: boolean
default: true
disableTrivyScans:
required: false
type: boolean
secrets:
KUBEWEBHOOK_TOKEN:
required: true
Expand Down Expand Up @@ -52,19 +49,3 @@ jobs:
${{ steps.deployment-starting.outputs.deployment-name }}
deployment-ok:
${{ steps.deployment.outcome == 'success' && 'true' || 'false' }}

trivy:
name: 🕵️ Trivy vulnerability scanner
needs: [deploy]
runs-on: ubuntu-latest
if: ${{ ! inputs.disableTrivyScans }}
strategy:
fail-fast: false
max-parallel: 3
matrix:
imageRef: ${{ fromJson(needs.deploy.outputs.manifests-images) }}
steps:
- uses: socialgouv/workflows/actions/trivy-scan-image@v1
with:
image: ${{ matrix.imageRef }}
token: ${{ secrets.GITHUB_TOKEN }}
19 changes: 0 additions & 19 deletions .github/workflows/use-ks-wh-review-auto.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ on:
required: false
type: boolean
default: true
disableTrivyScans:
required: false
type: boolean
secrets:
KUBEWEBHOOK_TOKEN:
required: true
Expand Down Expand Up @@ -52,19 +49,3 @@ jobs:
${{ steps.deployment-starting.outputs.deployment-name }}
deployment-ok:
${{ steps.deployment.outcome == 'success' && 'true' || 'false' }}

trivy:
name: 🕵️ Trivy vulnerability scanner
needs: [deploy]
runs-on: ubuntu-latest
if: ${{ ! inputs.disableTrivyScans }}
strategy:
fail-fast: false
max-parallel: 3
matrix:
imageRef: ${{ fromJson(needs.deploy.outputs.manifests-images) }}
steps:
- uses: socialgouv/workflows/actions/trivy-scan-image@v1
with:
image: ${{ matrix.imageRef }}
token: ${{ secrets.GITHUB_TOKEN }}
19 changes: 0 additions & 19 deletions .github/workflows/use-ks-wh-review.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ on:
required: false
type: boolean
default: true
disableTrivyScans:
required: false
type: boolean
secrets:
KUBEWEBHOOK_TOKEN:
required: true
Expand Down Expand Up @@ -52,19 +49,3 @@ jobs:
${{ steps.deployment-starting.outputs.deployment-name }}
deployment-ok:
${{ steps.deployment.outcome == 'success' && 'true' || 'false' }}

trivy:
name: 🕵️ Trivy vulnerability scanner
needs: [deploy]
if: ${{ ! inputs.disableTrivyScans }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
max-parallel: 3
matrix:
imageRef: ${{ fromJson(needs.deploy.outputs.manifests-images) }}
steps:
- uses: socialgouv/workflows/actions/trivy-scan-image@v1
with:
image: ${{ matrix.imageRef }}
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 72090fc

Please sign in to comment.