|
9 | 9 |
|
10 | 10 | jobs:
|
11 | 11 | scan-build:
|
12 |
| - if: endsWith(github.repository, 'java-profiler-library') && !needs.check-for-pr.outputs.skip |
| 12 | + if: needs.check-for-pr.outputs.skip != 'true' |
13 | 13 | runs-on: ubuntu-latest
|
14 | 14 | steps:
|
15 | 15 | - uses: actions/checkout@v3
|
|
48 | 48 | comment-file: 'comment.html'
|
49 | 49 |
|
50 | 50 | cppcheck:
|
51 |
| - if: endsWith(github.repository, 'java-profiler-library') && !needs.check-for-pr.outputs.skip |
| 51 | + if: needs.check-for-pr.outputs.skip != 'true' |
52 | 52 | runs-on: ubuntu-latest
|
53 | 53 | steps:
|
54 | 54 | - uses: actions/checkout@v3
|
@@ -88,34 +88,34 @@ jobs:
|
88 | 88 | comment-id: "cppcheck"
|
89 | 89 | commenter: "pr-comment-cppcheck"
|
90 | 90 | comment-file: 'comment.html'
|
91 |
| -# codeql: |
92 |
| -# if: endsWith(github.repository, 'java-profiler-library') && !needs.check-for-pr.outputs.skip |
93 |
| -# runs-on: ubuntu-latest |
94 |
| -# permissions: |
95 |
| -# actions: read |
96 |
| -# contents: read |
97 |
| -# security-events: write |
98 |
| -# |
99 |
| -# strategy: |
100 |
| -# fail-fast: false |
101 |
| -# matrix: |
102 |
| -# language: [ 'cpp', 'java' ] |
103 |
| -# # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ] |
104 |
| -# # Learn more about CodeQL language support at https://git.io/codeql-language-support |
105 |
| -# |
106 |
| -# steps: |
107 |
| -# - name: Checkout repository |
108 |
| -# uses: actions/checkout@v2 |
109 |
| -# |
110 |
| -# # Initializes the CodeQL tools for scanning. |
111 |
| -# - name: Initialize CodeQL |
112 |
| -# uses: github/codeql-action/init@v2 |
113 |
| -# with: |
114 |
| -# languages: ${{ matrix.language }} |
115 |
| -# # If you wish to specify custom queries, you can do so here or in a config file. |
116 |
| -# # By default, queries listed here will override any specified in a config file. |
117 |
| -# # Prefix the list here with "+" to use these queries and those in the config file. |
118 |
| -# # queries: ./path/to/local/query, your-org/your-repo/queries@main |
119 |
| -# - run: ./gradlew -x test assembleJar |
120 |
| -# - name: Perform CodeQL Analysis |
121 |
| -# uses: github/codeql-action/analyze@v2 |
| 91 | + codeql: |
| 92 | + if: needs.check-for-pr.outputs.skip != 'true' |
| 93 | + runs-on: ubuntu-latest |
| 94 | + permissions: |
| 95 | + actions: read |
| 96 | + contents: read |
| 97 | + security-events: write |
| 98 | + |
| 99 | + strategy: |
| 100 | + fail-fast: false |
| 101 | + matrix: |
| 102 | + language: [ 'cpp', 'java' ] |
| 103 | + # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ] |
| 104 | + # Learn more about CodeQL language support at https://git.io/codeql-language-support |
| 105 | + |
| 106 | + steps: |
| 107 | + - name: Checkout repository |
| 108 | + uses: actions/checkout@v2 |
| 109 | + |
| 110 | + # Initializes the CodeQL tools for scanning. |
| 111 | + - name: Initialize CodeQL |
| 112 | + uses: github/codeql-action/init@v2 |
| 113 | + with: |
| 114 | + languages: ${{ matrix.language }} |
| 115 | + # If you wish to specify custom queries, you can do so here or in a config file. |
| 116 | + # By default, queries listed here will override any specified in a config file. |
| 117 | + # Prefix the list here with "+" to use these queries and those in the config file. |
| 118 | + # queries: ./path/to/local/query, your-org/your-repo/queries@main |
| 119 | + - run: ./gradlew -x test assembleJar |
| 120 | + - name: Perform CodeQL Analysis |
| 121 | + uses: github/codeql-action/analyze@v2 |
0 commit comments