@@ -13,16 +13,15 @@ name: "CodeQL"
1313
1414on :
1515 push :
16- branches : [ master, development, patch/* , release/*, hotfix/* ]
16+ branches : [ main, master, development , release/*, hotfix/* ]
1717 pull_request :
1818 # The branches below must be a subset of the branches above
19- branches : [ master ]
19+ branches : [ main, master ]
2020 schedule :
2121 - cron : ' 21 1 * * 4'
2222
2323jobs :
2424 analyze :
25- name : analyze
2625 runs-on : ubuntu-latest
2726 permissions :
2827 actions : read
@@ -37,47 +36,47 @@ jobs:
3736 # Learn more about CodeQL language support at https://git.io/codeql-language-support
3837
3938 steps :
40- - name : Checkout repository
41- uses : actions/checkout@v2
42- - name : Set up JDK 1.8
43- uses : actions/setup-java@v1
44- with :
45- java-version : 1.8
46- settings-path : ${{ github.workspace }}
39+ - name : Checkout repository
40+ uses : actions/checkout@v2
41+ - name : Set up JDK 1.8
42+ uses : actions/setup-java@v1
43+ with :
44+ java-version : 1.8
45+ settings-path : ${{ github.workspace }}
4746
48- - name : Load local Maven repository cache
49- uses : actions/cache@v2
50- with :
51- path : ~/.m2/repository
52- key : ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
53- restore-keys : |
54- ${{ runner.os }}-maven-
55-
56- # Initializes the CodeQL tools for scanning.
57- - name : Initialize CodeQL
58- uses : github/codeql-action/init@v1
59- with :
60- languages : ${{ matrix.language }}
61- # If you wish to specify custom queries, you can do so here or in a config file.
62- # By default, queries listed here will override any specified in a config file.
63- # Prefix the list here with "+" to use these queries and those in the config file.
64- # queries: ./path/to/local/query, your-org/your-repo/queries@main
47+ - name : Load local Maven repository cache
48+ uses : actions/cache@v2
49+ with :
50+ path : ~/.m2/repository
51+ key : ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
52+ restore-keys : |
53+ ${{ runner.os }}-maven-
6554
66- # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
67- # If this step fails, then you should remove it and run the build manually (see below)
68- - name : Autobuild
69- uses : github/codeql-action/autobuild@v1
55+ # Initializes the CodeQL tools for scanning.
56+ - name : Initialize CodeQL
57+ uses : github/codeql-action/init@v1
58+ with :
59+ languages : ${{ matrix.language }}
60+ # If you wish to specify custom queries, you can do so here or in a config file.
61+ # By default, queries listed here will override any specified in a config file.
62+ # Prefix the list here with "+" to use these queries and those in the config file.
63+ # queries: ./path/to/local/query, your-org/your-repo/queries@main
7064
71- # ℹ️ Command-line programs to run using the OS shell.
72- # 📚 https://git.io/JvXDl
65+ # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
66+ # If this step fails, then you should remove it and run the build manually (see below)
67+ - name : Autobuild
68+ uses : github/codeql-action/autobuild@v1
7369
74- # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
75- # and modify them (or add more) to build your code if your project
76- # uses a compiled language
70+ # ℹ️ Command-line programs to run using the OS shell.
71+ # 📚 https://git.io/JvXDl
7772
78- # - run: |
79- # make bootstrap
80- # make release
73+ # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
74+ # and modify them (or add more) to build your code if your project
75+ # uses a compiled language
8176
82- - name : Perform CodeQL Analysis
83- uses : github/codeql-action/analyze@v1
77+ # - run: |
78+ # make bootstrap
79+ # make release
80+
81+ - name : Perform CodeQL Analysis
82+ uses : github/codeql-action/analyze@v1
0 commit comments