Skip to content

Commit

Permalink
ci(.github): generalize sca scan for non docker artifacts
Browse files Browse the repository at this point in the history
reuse sca for docker image sca with cis scan
  • Loading branch information
saisatishkarra committed Feb 1, 2024
1 parent 5c5396e commit 332e4e8
Show file tree
Hide file tree
Showing 7 changed files with 746 additions and 143 deletions.
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@ updates:
schedule:
interval: "daily"

- package-ecosystem: "github-actions"
directory: "/security-actions/sca"
schedule:
interval: "daily"
commit-message:
prefix: "github-actions"
include: "scope"

- package-ecosystem: "github-actions"
directory: "/security-actions/scan-docker-image"
schedule:
Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/dir-scan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: SCA Directory Scan

on:
pull_request:
branches:
- main
push:
branches:
- main
tags:
- '*'

jobs:
test-sca-dir:
env:
TEST_REPOSITORY: "${{github.repository_owner}}/kong-mesh-gui"
runs-on: ubuntu-latest
permissions:
contents: read
issues: read
checks: write
pull-requests: write
name: Test Dir Scan
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
repository: ${{env.TEST_REPOSITORY}}
path: ${{env.TEST_REPOSITORY}}
- name: Scan Directory
id: scan-dir
uses: ./security-actions/sca
with:
asset_prefix: ${{env.TEST_REPOSITORY}}
dir: ${{env.TEST_REPOSITORY}}
2 changes: 1 addition & 1 deletion .github/workflows/docker-image-scan.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Docker Scan Test
name: SCA Docker Test

on:
pull_request:
Expand Down
Loading

0 comments on commit 332e4e8

Please sign in to comment.