Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bring back k8s manifest scan job #1740

Merged
merged 1 commit into from
Mar 15, 2024
Merged
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
56 changes: 28 additions & 28 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,34 +89,34 @@ jobs:
with:
image: ghcr.io/podkrepi-bg/frontend:${{ env.VERSION }}

# scan-manifests:
# name: Scan k8s manifests
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
#
# - name: Install kustomize
# uses: imranismail/setup-kustomize@v2
#
# - name: Build development manifests
# run: kustomize build manifests/overlays/development > dev-manifests.yaml
#
# - name: Scan development manifests with Mondoo
# uses: mondoohq/actions/k8s-manifest@main
# env:
# MONDOO_CONFIG_BASE64: ${{ secrets.MONDOO_SECRET }}
# with:
# path: dev-manifests.yaml
#
# - name: Build production manifests
# run: kustomize build manifests/overlays/production > prod-manifests.yaml
#
# - name: Scan production manifests with Mondoo
# uses: mondoohq/actions/k8s-manifest@main
# env:
# MONDOO_CONFIG_BASE64: ${{ secrets.MONDOO_SECRET }}
# with:
# path: prod-manifests.yaml
scan-manifests:
name: Scan k8s manifests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install kustomize
uses: imranismail/setup-kustomize@v2

- name: Build development manifests
run: kustomize build manifests/overlays/development > dev-manifests.yaml

- name: Scan development manifests with Mondoo
uses: mondoohq/actions/k8s-manifest@main
env:
MONDOO_CONFIG_BASE64: ${{ secrets.MONDOO_SECRET }}
with:
path: dev-manifests.yaml

- name: Build production manifests
run: kustomize build manifests/overlays/production > prod-manifests.yaml

- name: Scan production manifests with Mondoo
uses: mondoohq/actions/k8s-manifest@main
env:
MONDOO_CONFIG_BASE64: ${{ secrets.MONDOO_SECRET }}
with:
path: prod-manifests.yaml

run-playwright:
name: Run Playwright
Expand Down
60 changes: 30 additions & 30 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,36 +71,36 @@ jobs:
with:
image: ghcr.io/podkrepi-bg/maintenance:pr

# scan-manifests:
# name: Scan k8s manifests
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# with:
# ref: ${{ github.event.pull_request.head.sha }}
#
# - name: Install kustomize
# uses: imranismail/setup-kustomize@v2
#
# - name: Build development manifests
# run: kustomize build manifests/overlays/development > dev-manifests.yaml
#
# - name: Scan development manifests with Mondoo
# uses: mondoohq/actions/k8s-manifest@main
# env:
# MONDOO_CONFIG_BASE64: ${{ secrets.MONDOO_SECRET }}
# with:
# path: dev-manifests.yaml
#
# - name: Build production manifests
# run: kustomize build manifests/overlays/production > prod-manifests.yaml
#
# - name: Scan production manifests with Mondoo
# uses: mondoohq/actions/k8s-manifest@main
# env:
# MONDOO_CONFIG_BASE64: ${{ secrets.MONDOO_SECRET }}
# with:
# path: prod-manifests.yaml
scan-manifests:
name: Scan k8s manifests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}

- name: Install kustomize
uses: imranismail/setup-kustomize@v2

- name: Build development manifests
run: kustomize build manifests/overlays/development > dev-manifests.yaml

- name: Scan development manifests with Mondoo
uses: mondoohq/actions/k8s-manifest@main
env:
MONDOO_CONFIG_BASE64: ${{ secrets.MONDOO_SECRET }}
with:
path: dev-manifests.yaml

- name: Build production manifests
run: kustomize build manifests/overlays/production > prod-manifests.yaml

- name: Scan production manifests with Mondoo
uses: mondoohq/actions/k8s-manifest@main
env:
MONDOO_CONFIG_BASE64: ${{ secrets.MONDOO_SECRET }}
with:
path: prod-manifests.yaml

run-playwright:
name: Run Playwright
Expand Down
Loading