-
Notifications
You must be signed in to change notification settings - Fork 299
41 lines (38 loc) · 1.49 KB
/
codeql-analysis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: "Code scanning - action"
on:
push:
branches: [master]
pull_request:
branches: [master]
schedule:
- cron: '0 12 * * 6'
jobs:
# This is from: https://github.com/fkirc/skip-duplicate-actions#example-1-skip-entire-jobs
pre_job:
runs-on: ubuntu-latest
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/[email protected]
with:
cancel_others: 'true'
concurrent_skipping: 'same_content_newer'
CodeQL-Build:
needs: pre_job
if: needs.pre_job.outputs.should_skip != 'true'
runs-on: aws-athena-query-federation_ubuntu-latest_16-core
permissions:
security-events: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
# Specify custom java build since the autobuild doesn't take advantage of multiple cores.
# For more info on specifying custom build steps, see:
# https://docs.github.com/en/[email protected]/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-the-codeql-workflow-for-compiled-languages#adding-build-steps-for-a-compiled-language
- name: Build java
run: mvn clean package -T 1C -DskipTests -Dorg.slf4j.simpleLogger.defaultLogLevel=WARN --no-transfer-progress
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3