-
Notifications
You must be signed in to change notification settings - Fork 16
72 lines (62 loc) · 2.04 KB
/
Copy pathsecurity.yaml
File metadata and controls
72 lines (62 loc) · 2.04 KB
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
64
65
66
67
68
69
70
71
72
name: Security
on:
push:
branches: [main]
pull_request:
branches: [main]
merge_group:
types: [checks_requested]
workflow_dispatch:
permissions:
contents: read
pull-requests: read
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
secrets-scan:
name: Secrets Scan
runs-on: ubuntu-latest
steps:
- name: Skip merge queue scan
if: ${{ github.event_name == 'merge_group' }}
run: echo "Skipping secrets scan for merge queue"
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
if: ${{ github.event_name != 'merge_group' }}
with:
fetch-depth: 0
persist-credentials: false
- name: TruffleHog OSS
if: ${{ github.event_name != 'merge_group' }}
id: trufflehog
uses: trufflesecurity/trufflehog@37b77001d0174ebec2fcca2bd83ff83a6d45a3ab # v3.95.3
continue-on-error: true
with:
path: ./
version: 3.95.3
- name: Scan Results Status
if: ${{ github.event_name != 'merge_group' && steps.trufflehog.outcome == 'failure' }}
run: exit 1
codeql:
name: CodeQL Analyze Codebase
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ 'python', 'javascript-typescript' ]
steps:
- name: Checkout repository
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize CodeQL
uses: github/codeql-action/init@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4.36.2
with:
languages: ${{matrix.language}}
config-file: ./.github/codeql/codeql-config.yml
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4.36.2
with:
category: "/language:${{matrix.language}}"