forked from bndtools/bnd
-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (56 loc) · 1.39 KB
/
codeql-analysis.yml
File metadata and controls
60 lines (56 loc) · 1.39 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: "CodeQL"
on:
push:
branches-ignore:
- 'dependabot/**'
paths:
- '**.java'
- '.github/**/*codeql*'
pull_request:
paths:
- '**.java'
- '.github/**/*codeql*'
env:
LC_ALL: en_US.UTF-8
GRADLE_OPTS: >-
-Dorg.gradle.parallel=true
MAVEN_OPTS: >-
-Dhttp.keepAlive=false
-Dmaven.wagon.http.pool=false
-Dmaven.wagon.http.retryHandler.count=3
defaults:
run:
shell: bash
jobs:
analyze:
permissions:
# required for all workflows
security-events: write
strategy:
fail-fast: false
matrix:
os: [ 'ubuntu-latest' ]
java: [ '8' ]
script: [ 'codeql-build.sh' ]
name: JDK${{ matrix.java }} ${{ matrix.os }} ${{ matrix.script }}
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Gradle Wrapper Validation
uses: gradle/wrapper-validation-action@v1
- name: Set up Java ${{ matrix.java }}
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
- name: Initialize CodeQL Analysis
uses: github/codeql-action/init@v1
with:
languages: 'java'
- name: Build for CodeQL Analysis
id: build
run: |
${{ format('./.github/scripts/{0}', matrix.script) }}
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1