Skip to content

Commit cdb1567

Browse files
authored
Merge pull request #941 from hazendaz/master
Build Updates
2 parents 865b471 + 4320fe3 commit cdb1567

File tree

8 files changed

+40
-73
lines changed

8 files changed

+40
-73
lines changed

.github/workflows/ci.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,16 @@ name: Java CI
22

33
on: [workflow_dispatch, push, pull_request]
44

5+
permissions: read-all
6+
57
jobs:
68
test:
79
runs-on: ${{ matrix.os }}
810
strategy:
911
matrix:
1012
cache: [maven]
1113
distribution: [temurin]
12-
java: [17, 21, 23, 24-ea]
14+
java: [17, 21, 24, 25-ea]
1315
os: [ubuntu-latest]
1416
fail-fast: false
1517
max-parallel: 4

.github/workflows/codeql.yml

Lines changed: 26 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -1,90 +1,49 @@
1-
# For most projects, this workflow file will not need changing; you simply need
2-
# to commit it to your repository.
3-
#
4-
# You may wish to alter this file to override the set of languages analyzed,
5-
# or to provide custom queries or build logic.
6-
#
7-
# ******** NOTE ********
8-
# We have attempted to detect the languages in your repository. Please check
9-
# the `language` matrix defined below to confirm you have the correct set of
10-
# supported CodeQL languages.
11-
#
121
name: "CodeQL"
132

143
on:
154
push:
16-
branches: [ "master" ]
5+
branches: [ master ]
176
pull_request:
18-
branches: [ "master" ]
7+
branches: [ master ]
198
schedule:
209
- cron: '26 13 * * 4'
2110

2211
jobs:
2312
analyze:
2413
name: Analyze
25-
# Runner size impacts CodeQL analysis time. To learn more, please see:
26-
# - https://gh.io/recommended-hardware-resources-for-running-codeql
27-
# - https://gh.io/supported-runners-and-hardware-resources
28-
# - https://gh.io/using-larger-runners
29-
# Consider using larger runners for possible analysis time improvements.
3014
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
3115
timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }}
3216
permissions:
33-
# required for all workflows
34-
security-events: write
35-
36-
# only required for workflows in private repositories
3717
actions: read
3818
contents: read
19+
security-events: write
3920

4021
strategy:
4122
fail-fast: false
4223
matrix:
4324
language: [ 'java-kotlin' ]
44-
# CodeQL supports [ 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift' ]
45-
# Use only 'java-kotlin' to analyze code written in Java, Kotlin or both
46-
# Use only 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
47-
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
4825

4926
steps:
50-
- name: Checkout repository
51-
uses: actions/checkout@v4
52-
53-
- name: Setup Java
54-
uses: actions/setup-java@v4
55-
with:
56-
java-version: 17
57-
distribution: 'temurin'
58-
59-
# Initializes the CodeQL tools for scanning.
60-
- name: Initialize CodeQL
61-
uses: github/codeql-action/init@v3
62-
with:
63-
languages: ${{ matrix.language }}
64-
# If you wish to specify custom queries, you can do so here or in a config file.
65-
# By default, queries listed here will override any specified in a config file.
66-
# Prefix the list here with "+" to use these queries and those in the config file.
67-
68-
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
69-
# queries: security-extended,security-and-quality
70-
71-
72-
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
73-
# If this step fails, then you should remove it and run the build manually (see below)
74-
- name: Autobuild
75-
uses: github/codeql-action/autobuild@v3
76-
77-
# ℹ️ Command-line programs to run using the OS shell.
78-
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
79-
80-
# If the Autobuild fails above, remove it and uncomment the following three lines.
81-
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
82-
83-
# - run: |
84-
# echo "Run, Build Application using script"
85-
# ./location_of_script_within_repo/buildscript.sh
86-
87-
- name: Perform CodeQL Analysis
88-
uses: github/codeql-action/analyze@v3
89-
with:
90-
category: "/language:${{matrix.language}}"
27+
- name: Checkout repository
28+
uses: actions/checkout@v4
29+
30+
- name: Setup Java
31+
uses: actions/setup-java@v4
32+
with:
33+
cache: maven
34+
distribution: 'temurin'
35+
java-version: 21
36+
37+
- name: Initialize CodeQL
38+
uses: github/codeql-action/init@v3
39+
with:
40+
languages: ${{ matrix.language }}
41+
queries: +security-and-quality
42+
43+
- name: Autobuild
44+
uses: github/codeql-action/autobuild@v3
45+
46+
- name: Perform CodeQL Analysis
47+
uses: github/codeql-action/analyze@v3
48+
with:
49+
category: "/language:${{ matrix.language }}"

.github/workflows/coveralls.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ name: Coveralls
22

33
on: [push, pull_request]
44

5+
permissions: read-all
6+
57
jobs:
68
build:
79
if: github.repository_owner == 'mybatis'

.github/workflows/site.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
branches:
66
- site
77

8+
permissions:
9+
contents: write
10+
811
jobs:
912
build:
1013
if: github.repository_owner == 'mybatis' && ! contains(toJSON(github.event.head_commit.message), '[maven-release-plugin]')
@@ -20,12 +23,10 @@ jobs:
2023
- name: Build site
2124
run: ./mvnw site site:stage -DskipTests -Dlicense.skip=true -B -V --no-transfer-progress --settings ./.mvn/settings.xml
2225
env:
23-
CI_DEPLOY_USERNAME: ${{ secrets.CI_DEPLOY_USERNAME }}
2426
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2527
NVD_API_KEY: ${{ secrets.NVD_API_KEY }}
2628
- name: Deploy Site to gh-pages
2729
uses: JamesIves/github-pages-deploy-action@v4
2830
with:
2931
branch: gh-pages
3032
folder: target/staging
31-
ssh-key: ${{ secrets.DEPLOY_KEY }}

.github/workflows/sonar.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
branches:
66
- master
77

8+
permissions: read-all
9+
810
jobs:
911
build:
1012
if: github.repository_owner == 'mybatis'

.github/workflows/sonatype.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
branches:
66
- master
77

8+
permissions: read-all
9+
810
jobs:
911
build:
1012
if: github.repository_owner == 'mybatis' && ! contains(toJSON(github.event.head_commit.message), '[maven-release-plugin]')

.mvn/extensions.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@
2020
<extension>
2121
<groupId>fr.jcgay.maven</groupId>
2222
<artifactId>maven-profiler</artifactId>
23-
<version>3.2</version>
23+
<version>3.3</version>
2424
</extension>
2525
</extensions>

.mvn/settings.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<servers>
2323
<!-- Used for sonatype snapshots and releases -->
2424
<server>
25-
<id>ossrh</id>
25+
<id>central</id>
2626
<username>${env.CI_DEPLOY_USERNAME}</username>
2727
<password>${env.CI_DEPLOY_PASSWORD}</password>
2828
</server>
@@ -39,7 +39,6 @@
3939
<!-- Github deployments (site) -->
4040
<server>
4141
<id>github</id>
42-
<username>${env.CI_DEPLOY_USERNAME}</username>
4342
<password>${env.GITHUB_TOKEN}</password>
4443
</server>
4544

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy