-
Notifications
You must be signed in to change notification settings - Fork 6
40 lines (35 loc) · 1.13 KB
/
analysis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: "Static Analysis"
on:
push:
branches:
- '**'
tags-ignore:
- '**'
pull_request:
jobs:
Static-Check:
runs-on: ubuntu-latest
steps:
- name: Checkout Source
uses: actions/checkout@v4
with:
# Checkout only the local-rt-setup directory
sparse-checkout: local-rt-setup
sparse-checkout-cone-mode: false
# Move the files from the local-rt-setup directory to the root directory to run the linter on the right directory
- run: mv local-rt-setup/* .
- name: Run golangci linter
uses: jfrog/.github/actions/golangci-lint@main
Go-Sec:
runs-on: ubuntu-latest
steps:
- name: Checkout Source
uses: actions/checkout@v4
with:
# Checkout only the local-rt-setup directory
sparse-checkout: local-rt-setup
sparse-checkout-cone-mode: false
# Move the files from the local-rt-setup directory to the root directory to run the linter on the right directory
- run: mv local-rt-setup/* .
- name: Run Go-Sec scanner
uses: jfrog/.github/actions/gosec-scanner@main