Skip to content
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

update coverity scanner #42

Merged
merged 1 commit into from
Nov 27, 2023
Merged
Changes from all commits
Commits
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
23 changes: 18 additions & 5 deletions .github/workflows/tii-rplidar-ros2-coverity.yaml
Original file line number Diff line number Diff line change
@@ -1,23 +1,36 @@
name: tii-rplidar-ros2-coverity

on:
repository_dispatch:
workflow_dispatch:
push:
branches:
- new_ros2
pull_request:
branches:
- new_ros2

jobs:
coverity:
runs-on: rplidar-ros2-self-hosted-coverity
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Run coverity scan
run:
docker run --rm -e PROJECT_NAME=${{ github.event.repository.name }} -v "$(pwd):/main_ws/src" ghcr.io/tiiuae/fog-ros-baseimage-builder-coverity:main
run: |
docker run --rm \
-e PROJECT_NAME=${{ github.event.repository.name }} \
-v "$(pwd):/main_ws/src" \
ghcr.io/tiiuae/fog-ros-baseimage-builder-coverity:sha-4da4f0d
- name: Update summary
run: |
cat cov-analyze-result.txt >> $GITHUB_STEP_SUMMARY
- name: Upload coverity scan results
uses: actions/upload-artifact@v3
with:
name: coverity-html-report-${{ github.event.repository.name }}
path: coverity-output