forked from mschneider/solcpp
-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (47 loc) · 1.51 KB
/
security.yml
File metadata and controls
59 lines (47 loc) · 1.51 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
name: Security Scan
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-18.04
permissions:
security-events: write
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v2
- name: Get Conan
uses: turtlebrowser/get-conan@v1.0
- name: Create default profile
run: conan profile new default --detect --force
- uses: actions/cache@v2
with:
path: ~/.conan
key: ${{ runner.os }}-conan-${{ hashFiles('**/conanfile.txt') }}
restore-keys: |
${{ runner.os }}-conan-
- name: Override default profile
run:
rsync --checksum ${{github.workspace}}/conan_profile.linux
~/.conan/profiles/default
- name: Install dependencies
run:
conan install . -s build_type=Release
--install-folder=${{github.workspace}}/build --build=missing
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=Release
# Initialised pre-build to monitor the build process
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: "cpp"
- name: Build
run:
cmake --build ${{github.workspace}}/build --config Release --verbose
# Run security tests against build and log to the security center
- name: Perform CodeQL Analysis
continue-on-error: true
uses: github/codeql-action/analyze@v1