@@ -3,115 +3,11 @@ name: "CodeQL Analysis"
3
3
on :
4
4
push :
5
5
pull_request :
6
-
7
- env :
8
- SIMULATION : native
9
- ENABLE_UNIT_TESTS : true
10
- OMIT_DEPRECATED : true
11
- BUILDTYPE : release
12
-
6
+
13
7
jobs :
14
- # Checks for duplicate actions. Skips push actions if there is a matching or duplicate pull-request action.
15
- check-for-duplicates :
16
- runs-on : ubuntu-latest
17
- # Map a step output to a job output
18
- outputs :
19
- should_skip : ${{ steps.skip_check.outputs.should_skip }}
20
- steps :
21
- - id : skip_check
22
- uses : fkirc/skip-duplicate-actions@master
23
- with :
24
- concurrent_skipping : ' same_content'
25
- skip_after_successful_duplicate : ' true'
26
- do_not_skip : ' ["pull_request", "workflow_dispatch", "schedule"]'
27
-
28
- CodeQL-Security-Build :
29
- needs : check-for-duplicates
30
- if : ${{ needs.check-for-duplicates.outputs.should_skip != 'true' }}
31
- runs-on : ubuntu-18.04
32
- timeout-minutes : 15
33
-
34
- steps :
35
- # Checks out a copy of your repository on the ubuntu-latest machine
36
- - name : Checkout bundle
37
- uses : actions/checkout@v2
38
- with :
39
- repository : nasa/cFS
40
- submodules : true
41
-
42
- - name : Checkout submodule
43
- uses : actions/checkout@v2
44
- with :
45
- path : cfe
46
-
47
- - name : Check versions
48
- run : git submodule
49
-
50
- - name : Initialize CodeQL
51
- uses : github/codeql-action/init@v1
52
- with :
53
- languages : c
54
- config-file : nasa/cFS/.github/codeql/codeql-security.yml@main
55
-
56
- # Setup the build system
57
- - name : Set up for build
58
- run : |
59
- cp ./cfe/cmake/Makefile.sample Makefile
60
- cp -r ./cfe/cmake/sample_defs sample_defs
61
- make prep
62
-
63
- # Build the code
64
- - name : Build
65
- run : |
66
- make -C build/native/default_cpu1 core_api core_private es evs fs msg resourceid sb sbr tbl time
67
- - name : Perform CodeQL Analysis
68
- uses : github/codeql-action/analyze@v1
69
-
70
- CodeQL-Coding-Standard-Build :
71
- needs : check-for-duplicates
72
- if : ${{ needs.check-for-duplicates.outputs.should_skip != 'true' }}
73
- runs-on : ubuntu-18.04
74
- timeout-minutes : 15
75
-
76
- steps :
77
- # Checks out a copy of your repository on the ubuntu-latest machine
78
- - name : Checkout bundle
79
- uses : actions/checkout@v2
80
- with :
81
- repository : nasa/cFS
82
- submodules : true
83
-
84
- - name : Checkout submodule
85
- uses : actions/checkout@v2
86
- with :
87
- path : cfe
88
-
89
- - name : Check versions
90
- run : git submodule
91
-
92
- - name : Checkout codeql code
93
- uses : actions/checkout@v2
94
- with :
95
- repository : github/codeql
96
- submodules : true
97
- path : codeql
98
-
99
- - name : Initialize CodeQL
100
- uses : github/codeql-action/init@v1
101
- with :
102
- languages : c
103
- config-file : nasa/cFS/.github/codeql/codeql-coding-standard.yml@main
104
-
105
- # Setup the build system
106
- - name : Set up for build
107
- run : |
108
- cp ./cfe/cmake/Makefile.sample Makefile
109
- cp -r ./cfe/cmake/sample_defs sample_defs
110
- make prep
111
-
112
- # Build the code
113
- - name : Build
114
- run : |
115
- make -C build/native/default_cpu1 core_api core_private es evs fs msg resourceid sb sbr tbl time
116
- - name : Perform CodeQL Analysis
117
- uses : github/codeql-action/analyze@v1
8
+ codeql :
9
+ name : CodeQL Analysis
10
+ uses : nasa/cFS/.github/workflows/codeql-build.yml@main
11
+ with :
12
+ make-prep : ' make prep'
13
+ make : ' make -C build/native/default_cpu1 core_api core_private es evs fs msg resourceid sb sbr tbl time'
0 commit comments