-
-
Notifications
You must be signed in to change notification settings - Fork 7
32 lines (28 loc) · 814 Bytes
/
scan-codebase.yml
File metadata and controls
32 lines (28 loc) · 814 Bytes
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
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
jobs:
scan-codebase:
runs-on: ubuntu-24.04
permissions:
contents: read
name: Scan codebase and check for compliance issues
steps:
- name: Get the action.yml from the current branch
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
sparse-checkout: action.yml
sparse-checkout-cone-mode: false
persist-credentials: false
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
path: scancode-inputs
persist-credentials: false
- uses: ./
with:
pipelines: "scan_codebase"
check-compliance: true
compliance-fail-level: "WARNING"