Skip to content

Commit

Permalink
Merge branch 'main' into kevin/dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
mattjohnsonpint authored Jan 3, 2024
2 parents c406cef + 09788e2 commit 4588e2b
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/ci-aqua-security-trivy-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: ci-aqua-security-trivy-tests
on:
push:
branches:
- main
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review
branches:
- main
schedule:
- cron: "0 0 * * *"
permissions: read-all
jobs:
build:
name: trivy-tests
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
with:
scan-type: 'fs'
scan-ref: '.'
format: 'sarif'
output: 'trivy-results.sarif'
- name: Install Rust
run: curl https://sh.rustup.rs -sSf | sh -s -- -y
- name: Install sarif-fmt
run: |
cargo install sarif-fmt
- name: Print Trivy scan results
run: sarif-fmt -i trivy-results.sarif
34 changes: 34 additions & 0 deletions .github/workflows/ci-golang-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: ci-golang-lint
on:
push:
branches:
- main
pull_request:
types:
- opened
- synchronize
- reopened
- ready_for_review
jobs:
golang-lint:
if: github.event_name == 'pull_request'
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: '>=1.20.0'
- run: go version
- name: golang-lint
env:
GOGC: 10
uses: golangci/golangci-lint-action@v3
with:
version: latest
working-directory: hmruntime
only-new-issues: true
skip-pkg-cache: true
skip-build-cache: true
args: --timeout=10m

0 comments on commit 4588e2b

Please sign in to comment.