-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(.github): generalize sca scan for non docker artifacts
reuse sca for docker image sca with cis scan
- Loading branch information
1 parent
5c5396e
commit 332e4e8
Showing
7 changed files
with
746 additions
and
143 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | ||
|
Oops, something went wrong.