-
Notifications
You must be signed in to change notification settings - Fork 208
78 lines (66 loc) · 1.94 KB
/
codeql-scanning.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: "codeql-scanning"
on:
push:
branches:
- master
- 'release/*'
pull_request:
branches:
- master
- 'release/*'
paths:
- 'node/**'
- 'operators/**'
- 'retriever/**'
- 'disperser/**'
- 'core/**'
- 'common/**'
- 'api/**'
- 'subgraphs/**'
- 'indexer/**'
- 'encoding/**'
- 'crypto/**'
- 'relay/**'
- '.github/codeql/**'
- '.github/workflows/codeql-scanning.yaml'
schedule:
- cron: '0 9 * * *'
jobs:
CodeQL-Build:
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
pull-requests: read
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2
with:
submodules: recursive
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly-293fad73670b7b59ca901c7f2105bf7a29165a90
- name: Install golang
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 #5.3.0
with:
go-version: '1.21.13'
- name: Build contract dependencies
run: |
cd contracts && yarn
- name: Compile contracts
run: |
cd contracts && forge build
# Ref: https://github.com/Layr-Labs/eigenda/blob/master/.github/workflows/integration-tests.yml#L71C7-L71C67
# - name: Custom build using make
# run: |
# go install github.com/ethereum/go-ethereum/cmd/abigen@latest
# make compile-contracts
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL including Trail of Bits Go Queries
uses: github/codeql-action/init@dd746615b3b9d728a6a37ca2045b68ca76d4841a #3.28.8
with:
languages: go
packs: trailofbits/go-queries
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@dd746615b3b9d728a6a37ca2045b68ca76d4841a #3.28.8