Skip to content

Commit

Permalink
Test fixing Covscan PR target
Browse files Browse the repository at this point in the history
Signed-off-by: Simo Sorce <[email protected]>
  • Loading branch information
simo5 committed Apr 24, 2024
1 parent 9d81483 commit 379a097
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/coverity-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: Coverity Scan

on:
pull_request_target:
pull_request:
branches: ["main"]
types:
- labeled
Expand Down Expand Up @@ -60,8 +60,9 @@ jobs:
nss-softokn nss-tools nss-softokn-devel \
gh
- name: Find PR
uses: suzuki-shunsuke/[email protected]
id: pr
run: |
echo "Base ${{ github.event.pull_request.base.ref }} - ${{ github.event.pull_request.base.sha }}"
echo "Head ${{ github.event.pull_request.head.ref }} - ${{ github.event.pull_request.head.sha }}"
- name: Checkout Repository
uses: actions/checkout@v4
with:
Expand All @@ -84,3 +85,11 @@ jobs:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}
NUMBER: ${{ github.event.number }}

on-no-covscan-labeled-pr:
if: ${{ contains(github.event.*.labels.*.name, 'no-covscan') }}
name: Coverity Scan on PR
runs-on: ubuntu-latest
steps:
- name: All covered
run: echo "Dummy action to report all ok and mark covscan as handled"

0 comments on commit 379a097

Please sign in to comment.