Skip to content

Commit

Permalink
Create dependabot.yml
Browse files Browse the repository at this point in the history
Signed-off-by: Anurag Rajawat <[email protected]>
  • Loading branch information
Anurag Rajawat committed May 22, 2024
1 parent 8121839 commit 1a0ea02
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 12 deletions.
29 changes: 29 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"

- package-ecosystem: "gomod"
directory: "/"
schedule:
interval: "weekly"

- package-ecosystem: "gomod"
directory: "/pkg/adapter/nimbus-kubearmor"
schedule:
interval: "weekly"

- package-ecosystem: "gomod"
directory: "/pkg/adapter/nimbus-netpol"
schedule:
interval: "weekly"

- package-ecosystem: "gomod"
directory: "/pkg/adapter/nimbus-kyverno"
schedule:
interval: "weekly"
15 changes: 5 additions & 10 deletions .github/workflows/release-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,17 +49,12 @@ jobs:
run: make docker-build
working-directory: ${{ inputs.WORKING_DIRECTORY }}

- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@v0.20.0
- name: Scan image
uses: anchore/scan-action@v3
with:
image-ref: 'docker.io/5gsec/${{ inputs.NAME }}:v0.1'
format: 'sarif'
exit-code: '1'
ignore-unfixed: true
vuln-type: 'os,library'
severity: 'CRITICAL,HIGH'
scan-type: image
output: 'trivy-results.sarif'
image: '5gsec/${{ inputs.NAME }}:v0.1'
severity-cutoff: critical
output-format: sarif

- name: Build and push image
working-directory: ${{ inputs.WORKING_DIRECTORY }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/stable-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ concurrency:

jobs:
release-nimbus-image:
if: github.repository == '5GSEC/nimbus'
#if: github.repository == '5GSEC/nimbus'
name: Build and push nimbus image
uses: ./.github/workflows/release-image.yaml
with:
Expand All @@ -25,7 +25,7 @@ jobs:
secrets: inherit

release-adapters-image:
if: github.repository == '5GSEC/nimbus'
#if: github.repository == '5GSEC/nimbus'
strategy:
matrix:
adapters: [ "nimbus-kubearmor", "nimbus-netpol", "nimbus-kyverno" ]
Expand Down

0 comments on commit 1a0ea02

Please sign in to comment.