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