Skip to content
This repository was archived by the owner on Apr 8, 2025. It is now read-only.

Commit 4847449

Browse files
update readme and example deployments (#203)
* update readme and example deployments Signed-off-by: John O'Loughlin <[email protected]> * Remove old dockerfiles Signed-off-by: John O'Loughlin <[email protected]> --------- Signed-off-by: John O'Loughlin <[email protected]>
1 parent 0be13e4 commit 4847449

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+591
-2637
lines changed

Diff for: .github/workflows/trivy-testpmd.yml

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
6+
name: trivy-testpmd
7+
8+
on:
9+
push:
10+
branches: [ "master" ]
11+
pull_request:
12+
# The branches below must be a subset of the branches above
13+
branches: [ "master" ]
14+
schedule:
15+
- cron: '40 20 * * 4'
16+
17+
permissions:
18+
contents: read
19+
20+
jobs:
21+
build:
22+
permissions:
23+
contents: read # for actions/checkout to fetch code
24+
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
25+
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
26+
name: Build
27+
runs-on: ubuntu-latest
28+
steps:
29+
- name: Checkout code
30+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
31+
32+
- name: Build testpmd image
33+
run: docker build -t testpmd:latest -f ./docker/testpmd/Dockerfile ./docker/testpmd/
34+
35+
- name: Testpmd Run Trivy vulnerability scanner
36+
uses: aquasecurity/trivy-action@f78e9ecf42a1271402d4f484518b9313235990e1
37+
with:
38+
image-ref: 'testpmd:latest'
39+
format: 'template'
40+
template: '@/contrib/sarif.tpl'
41+
output: 'testpmd-trivy-results.sarif'
42+
severity: 'CRITICAL,HIGH'
43+
44+
- name: Upload Trivy scan results to GitHub Security tab
45+
uses: github/codeql-action/upload-sarif@v2
46+
with:
47+
sarif_file: 'testpmd-trivy-results.sarif'

Diff for: .github/workflows/trivy.yml

-1
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,3 @@ jobs:
4747
uses: github/codeql-action/upload-sarif@v2
4848
with:
4949
sarif_file: 'trivy-results.sarif'
50-

Diff for: Makefile

+4
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,7 @@ deploy:
4242

4343
undeploy:
4444
kubectl delete -f ./kubernetes/userspace-daemonset.yml
45+
46+
testpmd:
47+
@$(IMAGE_BUILDER) build -t $(IMAGE_REGISTRY)testpmd:latest -f ./docker/testpmd/Dockerfile ./docker/testpmd/
48+
@$(IMAGE_BUILDER) push $(IMAGE_REGISTRY)testpmd:latest

0 commit comments

Comments
 (0)