File tree Expand file tree Collapse file tree 2 files changed +15
-7
lines changed Expand file tree Collapse file tree 2 files changed +15
-7
lines changed Original file line number Diff line number Diff line change @@ -27,18 +27,18 @@ jobs:
27
27
uses : actions/checkout@v3
28
28
29
29
- name : Initialize CodeQL
30
- uses : github/codeql-action/init@v2
30
+ uses : github/codeql-action/init@v3
31
31
with :
32
32
languages : ${{ matrix.language }}
33
33
34
34
- name : Set up JDK
35
35
uses : actions/setup-java@v3
36
36
with :
37
- java-version : ' 23' # Or your actual Java version
37
+ java-version : ' 23'
38
38
distribution : ' temurin'
39
39
40
- - name : Build project with Maven
41
- run : mvn clean install
40
+ - name : Build project with Maven (GPG disabled)
41
+ run : mvn clean install -Dgpg.skip=true
42
42
43
43
- name : Perform CodeQL Analysis
44
- uses : github/codeql-action/analyze@v2
44
+ uses : github/codeql-action/analyze@v3
Original file line number Diff line number Diff line change 20
20
java-version : ' 23'
21
21
distribution : ' temurin'
22
22
23
- - name : Build with Maven
24
- run : mvn clean install
23
+ - name : Import GPG key
24
+ run : |
25
+ echo "$GPG_PRIVATE_KEY" | gpg --batch --import
26
+ echo "allow-loopback-pinentry" >> ~/.gnupg/gpg-agent.conf
27
+ echo "pinentry-mode loopback" >> ~/.gnupg/gpg.conf
28
+ env :
29
+ GPG_PRIVATE_KEY : ${{ secrets.GPG_PRIVATE_KEY }}
30
+
31
+ - name : Build with Maven (GPG Enabled)
32
+ run : mvn -B clean install -Dgpg.passphrase="${{ secrets.GPG_PASSPHRASE }}" -Dgpg.pinentry.mode=loopback
You can’t perform that action at this time.
0 commit comments