source: mod_gnutls/.github/workflows/analysis.yaml @ 0514cd7

asyncio
Last change on this file since 0514cd7 was 0514cd7, checked in by Fiona Klute <fiona.klute@…>, 7 months ago

Set checkout_path during SARIF upload

The absolute path inside the container is different from
github.workspace.

  • Property mode set to 100644
File size: 1.7 KB
Line 
1name: Analysis
2on:
3  pull_request:
4  push:
5    # don't run on packaging branches
6    branches-ignore:
7      - 'for-debian'
8      - 'debian/**'
9      - 'pristine-tar'
10    paths:
11      - '**'
12      - '!doc/**'
13      - '!**.md'
14
15jobs:
16  clang:
17    runs-on: ubuntu-20.04
18    container: debian:sid
19    name: clang-analyzer
20    steps:
21      - uses: actions/checkout@v2
22      - name: install dependencies
23        run: |
24          export DEBIAN_FRONTEND=noninteractive
25          apt-get update
26          apt-get -y install python3-yaml apache2-bin apache2-dev curl gnutls-bin libapr1-dev libgnutls28-dev openssl pkg-config procps clang-10 clang-tools-10 libmsv-dev
27      - name: find usable IPs for tests
28        run: |
29          echo "test_ips=$(python3 test/check_test_ips.py -H localhost)" >> ${GITHUB_ENV}
30      - name: autoreconf
31        run: autoreconf -fiv
32      - name: configure
33        run: scan-build-10 --use-cc=clang-10 ./configure --enable-msva TEST_IP="${test_ips}" APACHE_MUTEX=pthread
34      - name: store config.log
35        uses: actions/upload-artifact@v2
36        if: failure()
37        with:
38          name: scan-build-config-log
39          path: config.log
40      - name: make
41        run: scan-build-10 -sarif -o sarif-output --use-cc=clang-10 make
42      - name: find output directory
43        run: |
44          echo "SARIF_DIR=$(ls -d sarif-output/*)" >> ${GITHUB_ENV}
45      - name: define CONTAINER_WORKSPACE
46        run: |
47          echo "CONTAINER_WORKSPACE=${PWD}" >> ${GITHUB_ENV}
48      - name: upload SARIF results
49        uses: github/codeql-action/upload-sarif@v1
50        with:
51          sarif_file: ${{ env.SARIF_DIR }}
52          checkout_path: ${{ env.CONTAINER_WORKSPACE }}
Note: See TracBrowser for help on using the repository browser.