Skip to content

Commit

Permalink
Create pipeline for codeql analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
ascopes authored Dec 30, 2023
1 parent 3bff79b commit dc76959
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: CodeQL analysis
on:
pull_request:
branches:
- main
types:
- opened
- synchronize
push:
branches:
- main
workflow_call: {}
workflow_dispatch: {}

jobs:
codeql:
name: CodeQL analysis (${{ matrix.language }})
runs-on: ubuntu-22.04

concurrency:
group: codeql-codeql-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

permissions:
actions: read
contents: read
security-events: write

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

steps:
- name: Checkout repository
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
# Do not freeze. Enables automatic updates to how CodeQL scans
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}

- name: Autobuild
# Do not freeze. Enables automatic updates to how CodeQL scans
uses: github/codeql-action/autobuild@v3

- name: Perform CodeQL Analysis
# Do not freeze. Enables automatic updates to how CodeQL scans
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"

0 comments on commit dc76959

Please sign in to comment.