Skip to content

Commit

Permalink
Merge pull request #233 from proximax-foundry/develop
Browse files Browse the repository at this point in the history
release v1.5.0
  • Loading branch information
shinneng authored Nov 22, 2023
2 parents 2f6eb0c + cb9add4 commit ba01038
Show file tree
Hide file tree
Showing 27 changed files with 2,182 additions and 100 deletions.
61 changes: 61 additions & 0 deletions .github/workflows/trivy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: trivy

on:
push:
branches: [ "master", "develop" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "master" ]
# schedule:
# - cron: '22 1 * * 6'

permissions:
contents: read

jobs:
build:
permissions:
contents: read # for actions/checkout to fetch code
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
name: Build
runs-on: "ubuntu-latest"
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Setup Node 18.x
uses: actions/setup-node@v3
with:
node-version: '18'

- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Installing Dependencies
run: npm install

- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
with:
scan-type: 'fs'
scan-ref: '.'
format: 'template'
template: '@/contrib/sarif.tpl'
output: 'trivy-results.sarif'
severity: 'CRITICAL,HIGH'

- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: 'trivy-results.sarif'
1 change: 1 addition & 0 deletions env.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/// <reference types="vite/client" />
declare const BUILD_YEAR: string;
Loading

0 comments on commit ba01038

Please sign in to comment.