Skip to content

Catch error 502 that is thrown for analysis errors #461

Catch error 502 that is thrown for analysis errors

Catch error 502 that is thrown for analysis errors #461

name: sigrid-pullrequest
on: [pull_request]
jobs:
sigridci:
runs-on: ubuntu-latest
steps:
- name: "Check out repository"
uses: actions/checkout@v3
- name: "Special case: We use Sigrid CI on itself, so if we want its own code to be analyzed we need a copy"
run: "cp -r sigridci/sigridci src && cp sigridci/*.py src"
- name: "Run Sigrid CI"
env:
SIGRID_CI_TOKEN: "${{ secrets.SIGRID_CI_TOKEN }}"
run: "./sigridci/sigridci.py --customer sig --system sigridci-client --source ."
- name: "Save Sigrid CI results"
if: ${{ success() || failure() }}
uses: actions/upload-artifact@v2
with:
path: "sigrid-ci-output/**"
retention-days: 7
if-no-files-found: ignore