-
Notifications
You must be signed in to change notification settings - Fork 1
63 lines (59 loc) · 1.56 KB
/
analyzer.yaml
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: Analyzer
on:
branch_protection_rule:
pull_request:
branches:
- main
- releases/**
push:
branches:
- main
- releases/**
schedule:
- cron: '00 5 * * 0'
concurrency:
group: analyzer-${{ github.ref }}
cancel-in-progress: true
jobs:
security-cii-best-practice:
if: ${{ !startsWith(github.ref, 'refs/pull/') }}
runs-on: ubuntu-20.04
permissions:
security-events: write
id-token: write
actions: read
contents: read
name: Security CII Best Practices
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Perform Scorecards Analysis
uses: ossf/[email protected]
with:
results_file: results.sarif
results_format: sarif
publish_results: true
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: SARIF file
path: results.sarif
retention-days: 5
- name: Upload to Code-Scanning
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: results.sarif
check-dead-link:
if: ${{ !startsWith(github.ref, 'refs/heads/') }}
runs-on: ubuntu-20.04
name: Check Dead Link
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Perform Check Dead Link on Markdown
uses: gaurav-nelson/github-action-markdown-link-check@v1
with:
use-quiet-mode: "yes"
config-file: ".github/workflows/mlc_config.json"