Skip to content

Commit

Permalink
add codeql workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
vicentebolea committed May 12, 2023
1 parent c4af0cf commit 1eeb551
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/everything.yml
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,59 @@ jobs:
- name: Test
run: /opt/adios2/source/testing/contract/${{ matrix.code }}/test.sh

#######################################
# Code analysis builds
#######################################

analyze:
needs: [format, git_checks]
name: CodeQL vulnerability scan
runs-on: ubuntu-latest
container:
image: 'ornladios/adios2:ci-spack-el8-gcc8-serial'
env:
GH_YML_JOBNAME: el8-gcc8-serial
GH_YML_BASE_OS: Linux
GH_YML_MATRIX_OS: el8
GH_YML_MATRIX_COMPILER: gcc8
GH_YML_MATRIX_PARALLEL: serial
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'cpp' ]

steps:
- uses: actions/checkout@v3
with:
path: gha
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
path: source
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
- name: Setup
run: gha/scripts/ci/gh-actions/linux-setup.sh
- name: Update
run: gha/scripts/ci/gh-actions/run.sh update
- name: Configure
run: gha/scripts/ci/gh-actions/run.sh configure
- name: Build
run: gha/scripts/ci/gh-actions/run.sh build
- name: Test
run: gha/scripts/ci/gh-actions/run.sh test
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{matrix.language}}"

#######################################
# Workaround for skipping matrix jobs
#######################################
Expand Down

0 comments on commit 1eeb551

Please sign in to comment.