Skip to content

CodeQL

CodeQL #2

Workflow file for this run

name: CodeQL
on:
workflow_dispatch:
jobs:
analyze:
name: Analyze
runs-on: macos-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
steps:
- name: Checkout repository
uses: actions/checkout@v4
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: 'swift'
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main
- name: Build library
run: make build
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
- name: upload_artifact
uses: actions/upload-artifact@v4
with:
name: CodeQL Analysis Sarif
path: ${{ github.workspace }}/results/swift.sarif
- name: Upload SARIF report to DDOG
env:
DD_API_KEY: '${{ secrets.DD_API_KEY }}'
run: |
npm install -g @datadog/datadog-ci
datadog-ci sarif upload "${{ github.workspace }}/results/swift.sarif" --service dd-sdk-swift-testing --env ci