Fix more paths

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
This commit is contained in:
microwavedcola1 2023-02-21 12:10:17 +01:00
parent 0eeda22441
commit 70b65c5880
1 changed files with 28 additions and 20 deletions

View File

@ -1,24 +1,32 @@
name: Code Review - Rust name: Code Review - Rust
on: on:
push: push:
paths: ['cli/**', paths:
'client/**', [
'programs/**', 'bin/cli/**',
'keeper/**', 'client/**',
'lib/**', 'programs/**',
'liquidator/**', 'bin/keeper/**',
'anchor/cli/**', 'lib/**',
'Cargo.lock'] 'bin/liquidator/**',
pull_request: 'bin/settle-bot/**',
'anchor/cli/**',
'Cargo.lock',
]
pull_request:
branches: ['main', 'dev'] branches: ['main', 'dev']
paths: ['cli/**', paths:
'client/**', [
'programs/**', 'bin/cli/**',
'keeper/**', 'client/**',
'lib/**', 'programs/**',
'liquidator/**', 'bin/keeper/**',
'anchor/cli/**', 'lib/**',
'Cargo.lock'] 'bin/liquidator/**',
'bin/settle-bot/**',
'anchor/cli/**',
'Cargo.lock',
]
workflow_dispatch: # Pick branch manually workflow_dispatch: # Pick branch manually
env: env:
@ -103,7 +111,7 @@ jobs:
with: with:
name: raw-test-bpf name: raw-test-bpf
path: raw-test-bpf.log path: raw-test-bpf.log
sca: sca:
name: Dependency Scan name: Dependency Scan
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -121,7 +129,7 @@ jobs:
hide-progress: true hide-progress: true
format: 'sarif' format: 'sarif'
output: 'trivy-results.sarif' output: 'trivy-results.sarif'
# Fail the job on critical vulnerabiliies with fix available # Fail the job on critical vulnerabiliies with fix available
- name: Fail on critical vulnerabilities - name: Fail on critical vulnerabilities
uses: aquasecurity/trivy-action@master uses: aquasecurity/trivy-action@master
@ -139,7 +147,7 @@ jobs:
if: always() if: always()
with: with:
sarif_file: 'trivy-results.sarif' sarif_file: 'trivy-results.sarif'
# Download logs and process them # Download logs and process them
process-logs: process-logs:
name: Process logs name: Process logs