-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Add nightly coverity scan #859
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
Merged
tony-josi-aws
merged 7 commits into
FreeRTOS:main
from
tony-josi-aws:add_nightly_coverity_scan
Oct 26, 2023
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
8925206
coverity scan job
tony-josi-aws 5fef377
coverity scan badge in readme
tony-josi-aws fba344b
Update cron schedule
tony-josi-aws 8cce529
revert adding badge
tony-josi-aws 1da1188
update description
tony-josi-aws 4b1d08d
Merge branch 'main' of https://github.com/FreeRTOS/FreeRTOS-Kernel in…
tony-josi-aws 1ff8e6c
updating review feedback
tony-josi-aws File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| name: FreeRTOS-Kernel Coverity Scan | ||
| on: | ||
| schedule: ## Scheduled to run at 1:15 AM UTC daily. | ||
| - cron: '15 1 * * *' | ||
|
|
||
|
|
||
| jobs: | ||
|
|
||
| Coverity-Scan: | ||
| name: Coverity Scan | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout the Repository | ||
| uses: actions/checkout@v3 | ||
|
|
||
| - name: Install Build Essentials | ||
| shell: bash | ||
| run: | | ||
| sudo apt-get -y update | ||
| sudo apt-get -y install build-essential | ||
|
|
||
| - name: Install Coverity Build | ||
| shell: bash | ||
| env: | ||
| COVERITY_TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }} | ||
| run: | | ||
| wget -nv -qO- https://scan.coverity.com/download/linux64 --post-data "token=${COVERITY_TOKEN}&project=FreeRTOS-Kernel" | tar -zx --one-top-level=cov_scan --strip-components 1 | ||
| echo "cov_scan_path=$(pwd)/cov_scan/bin" >> $GITHUB_ENV | ||
|
|
||
| - name: Coverity Build & Upload for Scan | ||
| shell: bash | ||
| env: | ||
| COVERITY_TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }} | ||
| run: | | ||
| export PATH="$PATH:${{env.cov_scan_path}}" | ||
| cmake -S ./examples/cmake_example/ -B build | ||
| cd build | ||
| cov-build --dir cov-int make -j | ||
| tar czvf gcc_freertos_kerenl_sample_build.tgz cov-int | ||
| COV_SCAN_UPLOAD_STATUS=$(curl --form token=${COVERITY_TOKEN} \ | ||
| --form [email protected] \ | ||
| --form file=@gcc_freertos_kerenl_sample_build.tgz \ | ||
| --form version="Mainline" \ | ||
| --form description="FreeRTOS Kernel Nightly Scan" \ | ||
| https://scan.coverity.com/builds?project=FreeRTOS-Kernel) | ||
| echo "${COV_SCAN_UPLOAD_STATUS}" | grep -q -e 'Build successfully submitted' || echo >&2 "Error submitting build for analysis: ${COV_SCAN_UPLOAD_STATUS}" | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.