Skip to content

Bump github/codeql-action from 2 to 3 #75

Bump github/codeql-action from 2 to 3

Bump github/codeql-action from 2 to 3 #75

Workflow file for this run

name: CodeQL
on:
push:
branches: [ 'main' ]
pull_request:
branches: [ 'main' ]
schedule:
- cron: '0 0 * * 5'
jobs:
analyze:
name: Analyze
runs-on: ubuntu-22.04
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ 'cpp', 'javascript' ]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
- name: Setup GCC 12
if: matrix.language == 'cpp'
run: |
sudo apt update
sudo apt install gcc-12
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 110
- name: Manual build
if: matrix.language == 'cpp'
working-directory: ./native
run: |
gcc -c -fPIC -o bridge.o bridge.c
gcc -c -fPIC -o secret_sharing.o secret_sharing.c
gcc -shared -W -o libsecretsharing.so bridge.o secret_sharing.o
- name: Perform CodeQL analysis
uses: github/codeql-action/analyze@v3