Skip to content

Commit

Permalink
fix: allow disable trivy scans for all workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
matmut7 committed Jul 26, 2024
1 parent 35a3ff1 commit 80a92e9
Show file tree
Hide file tree
Showing 11 changed files with 88 additions and 24 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/use-ks-gh-preproduction.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ on:
kubeconfigContext:
required: false
type: string

disableTrivyScans:
required: false
type: boolean

jobs:
deploy:
Expand Down Expand Up @@ -53,14 +55,17 @@ jobs:
pat: ${{ secrets.SOCIALGROOVYBOT_BOTO_PAT }}
token: ${{ secrets.GITHUB_TOKEN }}
deployment-id: ${{ steps.deployment-starting.outputs.deployment-id }}
deployment-name: ${{ steps.deployment-starting.outputs.deployment-name }}
deployment-ok: ${{ steps.deployment.outcome == 'success' && 'true' || 'false' }}
deployment-name:
${{ steps.deployment-starting.outputs.deployment-name }}
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
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/use-ks-gh-review-auto.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ on:
kubeconfigContext:
required: false
type: string
disableTrivyScans:
required: false
type: boolean

jobs:
deploy:
Expand Down Expand Up @@ -52,13 +55,16 @@ jobs:
pat: ${{ secrets.SOCIALGROOVYBOT_BOTO_PAT }}
token: ${{ secrets.GITHUB_TOKEN }}
deployment-id: ${{ steps.deployment-starting.outputs.deployment-id }}
deployment-name: ${{ steps.deployment-starting.outputs.deployment-name }}
deployment-ok: ${{ steps.deployment.outcome == 'success' && 'true' || 'false' }}
deployment-name:
${{ steps.deployment-starting.outputs.deployment-name }}
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
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/use-ks-gh-review.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ on:
kubeconfigContext:
required: false
type: string
disableTrivyScans:
required: false
type: boolean

jobs:
deploy:
Expand Down Expand Up @@ -52,14 +55,17 @@ jobs:
pat: ${{ secrets.SOCIALGROOVYBOT_BOTO_PAT }}
token: ${{ secrets.GITHUB_TOKEN }}
deployment-id: ${{ steps.deployment-starting.outputs.deployment-id }}
deployment-name: ${{ steps.deployment-starting.outputs.deployment-name }}
deployment-ok: ${{ steps.deployment.outcome == 'success' && 'true' || 'false' }}
deployment-name:
${{ steps.deployment-starting.outputs.deployment-name }}
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
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/use-ks-gh-with-env-preproduction.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ on:
kubeconfigContext:
required: false
type: string

disableTrivyScans:
required: false
type: boolean

jobs:
deploy:
Expand Down Expand Up @@ -54,15 +56,18 @@ jobs:
pat: ${{ secrets.SOCIALGROOVYBOT_BOTO_PAT }}
token: ${{ secrets.GITHUB_TOKEN }}
deployment-id: ${{ steps.deployment-starting.outputs.deployment-id }}
deployment-name: ${{ steps.deployment-starting.outputs.deployment-name }}
deployment-ok: ${{ steps.deployment.outcome == 'success' && 'true' || 'false' }}
deployment-name:
${{ steps.deployment-starting.outputs.deployment-name }}
deployment-ok:
${{ 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
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/use-ks-gh-with-env-production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ on:
kubeconfigContext:
required: false
type: string
disableTrivyScans:
required: false
type: boolean

jobs:
deploy:
Expand Down Expand Up @@ -53,14 +56,17 @@ jobs:
pat: ${{ secrets.SOCIALGROOVYBOT_BOTO_PAT }}
token: ${{ secrets.GITHUB_TOKEN }}
deployment-id: ${{ steps.deployment-starting.outputs.deployment-id }}
deployment-name: ${{ steps.deployment-starting.outputs.deployment-name }}
deployment-ok: ${{ steps.deployment.outcome == 'success' && 'true' || 'false' }}
deployment-name:
${{ steps.deployment-starting.outputs.deployment-name }}
deployment-ok:
${{ 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
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/use-ks-gh-with-env-review-auto.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ on:
kubeconfigContext:
required: false
type: string
disableTrivyScans:
required: false
type: boolean

jobs:
deploy:
Expand Down Expand Up @@ -53,15 +56,18 @@ jobs:
pat: ${{ secrets.SOCIALGROOVYBOT_BOTO_PAT }}
token: ${{ secrets.GITHUB_TOKEN }}
deployment-id: ${{ steps.deployment-starting.outputs.deployment-id }}
deployment-name: ${{ steps.deployment-starting.outputs.deployment-name }}
deployment-ok: ${{ steps.deployment.outcome == 'success' && 'true' || 'false' }}
deployment-name:
${{ steps.deployment-starting.outputs.deployment-name }}
deployment-ok:
${{ 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
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/use-ks-gh-with-env-review.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ on:
kubeconfigContext:
required: false
type: string
disableTrivyScans:
required: false
type: boolean

jobs:
deploy:
Expand Down Expand Up @@ -53,15 +56,18 @@ jobs:
pat: ${{ secrets.SOCIALGROOVYBOT_BOTO_PAT }}
token: ${{ secrets.GITHUB_TOKEN }}
deployment-id: ${{ steps.deployment-starting.outputs.deployment-id }}
deployment-name: ${{ steps.deployment-starting.outputs.deployment-name }}
deployment-ok: ${{ steps.deployment.outcome == 'success' && 'true' || 'false' }}
deployment-name:
${{ steps.deployment-starting.outputs.deployment-name }}
deployment-ok:
${{ 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
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/use-ks-wh-preproduction.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
required: false
type: boolean
default: true
disableTrivyScans:
required: false
type: boolean
secrets:
KUBEWEBHOOK_TOKEN:
required: true
Expand Down Expand Up @@ -45,12 +48,15 @@ jobs:
pat: ${{ secrets.SOCIALGROOVYBOT_BOTO_PAT }}
token: ${{ secrets.GITHUB_TOKEN }}
deployment-id: ${{ steps.deployment-starting.outputs.deployment-id }}
deployment-name: ${{ steps.deployment-starting.outputs.deployment-name }}
deployment-ok: ${{ steps.deployment.outcome == 'success' && 'true' || 'false' }}
deployment-name:
${{ 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
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/use-ks-wh-production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
required: false
type: boolean
default: true
disableTrivyScans:
required: false
type: boolean
secrets:
KUBEWEBHOOK_TOKEN:
required: true
Expand Down Expand Up @@ -45,13 +48,16 @@ jobs:
pat: ${{ secrets.SOCIALGROOVYBOT_BOTO_PAT }}
token: ${{ secrets.GITHUB_TOKEN }}
deployment-id: ${{ steps.deployment-starting.outputs.deployment-id }}
deployment-name: ${{ steps.deployment-starting.outputs.deployment-name }}
deployment-ok: ${{ steps.deployment.outcome == 'success' && 'true' || 'false' }}
deployment-name:
${{ 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
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/use-ks-wh-review-auto.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
required: false
type: boolean
default: true
disableTrivyScans:
required: false
type: boolean
secrets:
KUBEWEBHOOK_TOKEN:
required: true
Expand Down Expand Up @@ -45,13 +48,16 @@ jobs:
pat: ${{ secrets.SOCIALGROOVYBOT_BOTO_PAT }}
token: ${{ secrets.GITHUB_TOKEN }}
deployment-id: ${{ steps.deployment-starting.outputs.deployment-id }}
deployment-name: ${{ steps.deployment-starting.outputs.deployment-name }}
deployment-ok: ${{ steps.deployment.outcome == 'success' && 'true' || 'false' }}
deployment-name:
${{ 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
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/use-ks-wh-review.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
required: false
type: boolean
default: true
disableTrivyScans:
required: false
type: boolean
secrets:
KUBEWEBHOOK_TOKEN:
required: true
Expand Down Expand Up @@ -45,12 +48,15 @@ jobs:
pat: ${{ secrets.SOCIALGROOVYBOT_BOTO_PAT }}
token: ${{ secrets.GITHUB_TOKEN }}
deployment-id: ${{ steps.deployment-starting.outputs.deployment-id }}
deployment-name: ${{ steps.deployment-starting.outputs.deployment-name }}
deployment-ok: ${{ steps.deployment.outcome == 'success' && 'true' || 'false' }}
deployment-name:
${{ 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
Expand Down

0 comments on commit 80a92e9

Please sign in to comment.