Skip to content

Test #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 81 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
81 commits
Select commit Hold shift + click to select a range
8f7d4be
Update codeql-analysis.yml
ArielSAdams Jun 15, 2022
a0cb996
codeql.sarif
ArielSAdams Jun 15, 2022
9cdfe4b
Update codeql-analysis.yml
ArielSAdams Jun 15, 2022
fbc5e0b
Update codeql-reusable.yml
ArielSAdams Jun 15, 2022
1bed3c2
v2
ArielSAdams Jun 15, 2022
cece455
cpp.sarif
ArielSAdams Jun 15, 2022
3d88d48
${{matrix.scan-type}}-CodeQL
ArielSAdams Jun 15, 2022
d99cfde
filter sarif
ArielSAdams Jun 15, 2022
28f21bf
Final Test for 509
ArielSAdams Jun 16, 2022
2e0220f
rename cpp.sarif
ArielSAdams Jun 16, 2022
3c7e34c
Update static-analysis-reuse.yml
ArielSAdams Jun 21, 2022
e04ed54
airtower-luna/convert-to-sarif
ArielSAdams Jun 21, 2022
cd4f64b
${{matrix.cppcheck}}_cppcheck_err.
ArielSAdams Jun 21, 2022
c61f2cb
push
ArielSAdams Jun 21, 2022
049af96
${{matrix.cppcheck}}_cppcheck_err.xml
ArielSAdams Jun 21, 2022
89bef6c
cd ${{matrix.cppcheck}}
ArielSAdams Jun 21, 2022
2fff592
${{matrix.cppcheck}}/${{matrix.cppcheck}}_cppcheck_err.xml
ArielSAdams Jun 21, 2022
d6eb4df
--enable=warning,style,unusedFunction --xml 2
ArielSAdams Jun 21, 2022
1252e94
--xml
ArielSAdams Jun 21, 2022
0279dd4
cat xml
ArielSAdams Jun 21, 2022
6e63b74
upload sarif
ArielSAdams Jun 21, 2022
c14a33e
final test
ArielSAdams Jun 21, 2022
7b62327
final test
ArielSAdams Jun 21, 2022
d59a739
final
ArielSAdams Jun 21, 2022
7f583cd
if: ${{ inputs.strict-dir-list !='' }}
ArielSAdams Jun 21, 2022
055cd78
tool: cppcheck
ArielSAdams Jun 21, 2022
6d0b304
Final Static Analysis
ArielSAdams Jun 21, 2022
f1ac839
Final
ArielSAdams Jun 21, 2022
b4d0e4e
Testing Static Analysis MISRA
ArielSAdams Jun 21, 2022
cb30472
Create agenda.yml
ArielSAdams Jul 6, 2022
601efe9
Update agenda.yml
ArielSAdams Jul 6, 2022
0a0e0f8
sudo apt-get install ruby-full -y
ArielSAdams Jul 6, 2022
b558038
sudo gem update --system --no-user-install
ArielSAdams Jul 6, 2022
e046fa9
arch -x86_64
ArielSAdams Jul 6, 2022
76d8c15
export-pull-requests
ArielSAdams Jul 6, 2022
e824aac
test
ArielSAdams Jul 6, 2022
0b796bc
token
ArielSAdams Jul 6, 2022
4085985
artifact
ArielSAdams Jul 6, 2022
d1fc6fd
two repos
ArielSAdams Jul 6, 2022
bbb3779
Update agenda.yml
ArielSAdams Jul 6, 2022
01d4b70
Update static-analysis-reuse.yml
ArielSAdams Jul 12, 2022
0f600a9
check for cppcheck errors
ArielSAdams Jul 12, 2022
1fac43b
ls
ArielSAdams Jul 12, 2022
7a426ec
Update static-analysis.yml
ArielSAdams Jul 12, 2022
539bcb6
Update static-analysis.yml
ArielSAdams Jul 12, 2022
15e5fb9
Update static-analysis.yml
ArielSAdams Jul 12, 2022
5edc309
reset
ArielSAdams Jul 12, 2022
c3398c8
RESET
ArielSAdams Jul 12, 2022
6d9c216
Update static-analysis.yml
ArielSAdams Jul 12, 2022
10d8c34
Update static-analysis.yml
ArielSAdams Jul 12, 2022
e4e122e
test 1
ArielSAdams Jul 12, 2022
bc7c6f8
test 1 rerun
ArielSAdams Jul 12, 2022
8c5be70
Update static-analysis.yml
ArielSAdams Jul 12, 2022
f076b2c
separate cppcheck
ArielSAdams Jul 12, 2022
606141e
cppcheck txt seperate
ArielSAdams Jul 12, 2022
06a7678
Update static-analysis.yml
ArielSAdams Jul 12, 2022
dbd00b5
general_cppcheck_err.xml general_cppcheck_err.txt
ArielSAdams Jul 12, 2022
2dfd9fd
Update static-analysis.yml
ArielSAdams Jul 12, 2022
f99fd3a
Final test
ArielSAdams Jul 12, 2022
1cbaf8f
MISRA FINAL TEST
ArielSAdams Jul 12, 2022
f984525
Final
ArielSAdams Jul 12, 2022
2e198cf
./*cppcheck_err.txt
ArielSAdams Jul 12, 2022
6aa4b23
v3
ArielSAdams Jul 12, 2022
0a5dc87
if: ${{matrix.cppcheck !='bundle'}}
ArielSAdams Jul 12, 2022
5239446
./*cppcheck_err./*
ArielSAdams Jul 12, 2022
389b4ee
./*cppcheck_err.\*
ArielSAdams Jul 12, 2022
4c59a77
path: ${{matrix.cppcheck}}/*cppcheck_err.*
ArielSAdams Jul 12, 2022
096681e
Update static-analysis.yml
ArielSAdams Jul 12, 2022
03c838c
test
ArielSAdams Jul 12, 2022
9088224
v3
ArielSAdams Jul 12, 2022
f5dceef
Update static-analysis-misra.yml
ArielSAdams Jul 12, 2022
06ba36f
ls
ArielSAdams Jul 12, 2022
a61ae01
tee
ArielSAdams Jul 12, 2022
239b8bb
2>&1 | tee
ArielSAdams Jul 12, 2022
bca50c9
Update static-analysis.yml
ArielSAdams Jul 12, 2022
245859c
2>
ArielSAdams Jul 12, 2022
217ad99
Update static-analysis.yml
ArielSAdams Jul 12, 2022
6efaa6e
Update static-analysis.yml
ArielSAdams Jul 14, 2022
745e1b0
Update static-analysis-misra.yml
ArielSAdams Jul 14, 2022
1d65884
${{matrix.cppcheck}}
ArielSAdams Jul 14, 2022
ca7825a
Update static-analysis-misra.yml
ArielSAdams Jul 14, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Final Test for 509
  • Loading branch information
ArielSAdams authored Jun 16, 2022
commit 28f21bf188bc351d383f6f7d1e4a0176c30c8975
32 changes: 9 additions & 23 deletions .github/workflows/codeql-reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ jobs:
rm -r .git
rm -r ${{ inputs.component-path }}
ln -s ${{github.workspace}} ${{ inputs.component-path }}


- name: Checkout ${{ github.repository }}
uses: actions/checkout@v2
Expand All @@ -111,47 +110,34 @@ jobs:
working-directory: ${{env.BUILD_DIRECTORY}}

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v1
with:
languages: c
config-file: nasa/cFS/.github/codeql/codeql-${{matrix.scan-type}}.yml@main

- name: Build
run: ${{ inputs.make }}
working-directory: ${{env.BUILD_DIRECTORY}}

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
add-snippets: true
category: ${{matrix.scan-type}}
upload: false
output: sarif-results-${{matrix.scan-type}}

- name: Filter Sarif
uses: zbazztian/filter-sarif@master
with:
# filter out all test files unless they contain a sql-injection vulnerability
patterns: |
-**/*.md
-**/*.txt
-**/*.dox
-**/*test*.c
input: sarif-results-${{matrix.scan-type}}/cpp.sarif
output: sarif-results-${{matrix.scan-type}}/cpp.sarif

output: CodeQL-Sarif-${{ matrix.scan-type }}

- name: Rename Sarif
run: |
sed -i 's/"name": "CodeQL"/"name": "CodeQL-${{matrix.scan-type}}"/g' sarif-results-${{matrix.scan-type}}/cpp.sarif

sed -i 's/"name" : "CodeQL"/"name" : "CodeQL-${{ matrix.scan-type }}"/g' CodeQL-Sarif-${{ matrix.scan-type }}/cpp.sarif
- name: Archive Sarif
uses: actions/upload-artifact@v2
with:
name: sarif-results-${{matrix.scan-type}}
path: sarif-results-${{matrix.scan-type}}
name: CodeQL-Sarif-${{ matrix.scan-type }}
path: CodeQL-Sarif-${{ matrix.scan-type }}

- name: Upload SARIF
uses: github/codeql-action/upload-sarif@v1
with:
sarif_file: sarif-results-${{matrix.scan-type}}/cpp.sarif

sarif_file: CodeQL-Sarif-${{ matrix.scan-type }}/cpp.sarif