Skip to content

Commit bb6d143

Browse files
authored
Merge branch 'spring-projects:main' into nimbus-ecoder-builder
2 parents 50b6daf + ff8b77d commit bb6d143

File tree

469 files changed

+6476
-1779
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

469 files changed

+6476
-1779
lines changed

.github/dependabot.template.yml

-40
This file was deleted.

.github/dependabot.yml

+27-18
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,32 @@ registries:
44
type: maven-repository
55
url: https://repo.spring.io/milestone
66
updates:
7+
- package-ecosystem: gradle
8+
target-branch: 6.5.x
9+
directory: /
10+
schedule:
11+
interval: daily
12+
time: '03:00'
13+
timezone: Etc/UTC
14+
labels:
15+
- 'type: dependency-upgrade'
16+
registries:
17+
- spring-milestones
18+
ignore:
19+
- dependency-name: com.nimbusds:nimbus-jose-jwt
20+
- dependency-name: org.python:jython
21+
- dependency-name: org.apache.directory.server:*
22+
- dependency-name: org.apache.directory.shared:*
23+
- dependency-name: org.junit:junit-bom
24+
update-types:
25+
- version-update:semver-major
26+
- dependency-name: org.mockito:mockito-bom
27+
update-types:
28+
- version-update:semver-major
29+
- dependency-name: '*'
30+
update-types:
31+
- version-update:semver-major
32+
- version-update:semver-minor
733
- package-ecosystem: gradle
834
target-branch: 6.4.x
935
directory: /
@@ -85,17 +111,8 @@ updates:
85111
- dependency-name: '*'
86112
update-types:
87113
- version-update:semver-major
114+
- version-update:semver-minor
88115

89-
- package-ecosystem: github-actions
90-
target-branch: 6.4.x
91-
directory: /
92-
schedule:
93-
interval: weekly
94-
labels:
95-
- 'type: task'
96-
- 'in: build'
97-
ignore:
98-
- dependency-name: sjohnr/*
99116
- package-ecosystem: github-actions
100117
target-branch: 6.3.x
101118
directory: /
@@ -106,14 +123,6 @@ updates:
106123
- 'in: build'
107124
ignore:
108125
- dependency-name: sjohnr/*
109-
- package-ecosystem: github-actions
110-
target-branch: main
111-
directory: /
112-
schedule:
113-
interval: weekly
114-
labels:
115-
- 'type: task'
116-
- 'in: build'
117126
- package-ecosystem: github-actions
118127
target-branch: docs-build
119128
directory: /

.github/workflows/codeql.yml

+80
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
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+
#
12+
name: "CodeQL Advanced"
13+
14+
on:
15+
push: # run if we update the workflow
16+
workflow_dispatch:
17+
schedule:
18+
- cron: '39 13 * * 4'
19+
20+
jobs:
21+
analyze:
22+
name: Analyze (${{ matrix.language }})
23+
# Runner size impacts CodeQL analysis time. To learn more, please see:
24+
# - https://gh.io/recommended-hardware-resources-for-running-codeql
25+
# - https://gh.io/supported-runners-and-hardware-resources
26+
# - https://gh.io/using-larger-runners (GitHub.com only)
27+
# Consider using larger runners or machines with greater resources for possible analysis time improvements.
28+
runs-on: ubuntu-latest
29+
permissions:
30+
# required for all workflows
31+
security-events: write
32+
33+
# required to fetch internal or private CodeQL packs
34+
packages: read
35+
36+
# only required for workflows in private repositories
37+
actions: read
38+
contents: read
39+
40+
strategy:
41+
fail-fast: false
42+
matrix:
43+
include:
44+
- language: actions
45+
build-mode: none
46+
# CodeQL supports the following values keywords for 'language': 'actions', 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift'
47+
# Use `c-cpp` to analyze code written in C, C++ or both
48+
# Use 'java-kotlin' to analyze code written in Java, Kotlin or both
49+
# Use 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
50+
# To learn more about changing the languages that are analyzed or customizing the build mode for your analysis,
51+
# see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning.
52+
# If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how
53+
# your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages
54+
steps:
55+
- name: Checkout repository
56+
uses: actions/checkout@v4
57+
58+
# Add any setup steps before running the `github/codeql-action/init` action.
59+
# This includes steps like installing compilers or runtimes (`actions/setup-node`
60+
# or others). This is typically only required for manual builds.
61+
# - name: Setup runtime (example)
62+
# uses: actions/setup-example@v1
63+
64+
# Initializes the CodeQL tools for scanning.
65+
- name: Initialize CodeQL
66+
uses: github/codeql-action/init@v3
67+
with:
68+
languages: ${{ matrix.language }}
69+
build-mode: ${{ matrix.build-mode }}
70+
# If you wish to specify custom queries, you can do so here or in a config file.
71+
# By default, queries listed here will override any specified in a config file.
72+
# Prefix the list here with "+" to use these queries and those in the config file.
73+
74+
# 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
75+
queries: security-extended,security-and-quality
76+
77+
- name: Perform CodeQL Analysis
78+
uses: github/codeql-action/analyze@v3
79+
with:
80+
category: "/language:${{matrix.language}}"

.github/workflows/continuous-integration-workflow.yml

+4-27
Original file line numberDiff line numberDiff line change
@@ -39,48 +39,25 @@ jobs:
3939
toolchain: 17
4040
with:
4141
java-version: ${{ matrix.java-version }}
42-
test-args: --refresh-dependencies -PforceMavenRepositories=snapshot -PisOverrideVersionCatalog -PtestToolchain=${{ matrix.toolchain }} -PspringFrameworkVersion=6.2.+ -PreactorVersion=2023.0.+ -PspringDataVersion=2024.0.+ --stacktrace
42+
test-args: --refresh-dependencies -PforceMavenRepositories=snapshot -PisOverrideVersionCatalog -PtestToolchain=${{ matrix.toolchain }} -PspringFrameworkVersion=7.+ -PreactorVersion=2025.+ -PspringDataVersion=2025.+ --stacktrace
4343
secrets: inherit
44-
check-samples:
45-
name: Check Samples
46-
runs-on: ubuntu-latest
47-
if: ${{ github.repository_owner == 'spring-projects' }}
48-
steps:
49-
- uses: actions/checkout@v4
50-
- name: Set up gradle
51-
uses: spring-io/spring-gradle-build-action@v2
52-
with:
53-
java-version: 17
54-
distribution: temurin
55-
- name: Check samples project
56-
env:
57-
LOCAL_REPOSITORY_PATH: ${{ github.workspace }}/build/publications/repos
58-
SAMPLES_DIR: ../spring-security-samples
59-
run: |
60-
# Extract version from gradle.properties
61-
version=$(cat gradle.properties | grep "version=" | awk -F'=' '{print $2}')
62-
# Extract samplesBranch from gradle.properties
63-
samples_branch=$(cat gradle.properties | grep "samplesBranch=" | awk -F'=' '{print $2}')
64-
./gradlew publishMavenJavaPublicationToLocalRepository
65-
./gradlew cloneRepository -PrepositoryName="spring-projects/spring-security-samples" -Pref="$samples_branch" -PcloneOutputDirectory="$SAMPLES_DIR"
66-
./gradlew --refresh-dependencies --project-dir "$SAMPLES_DIR" --init-script spring-security-ci.gradle -PlocalRepositoryPath="$LOCAL_REPOSITORY_PATH" -PspringSecurityVersion="$version" test integrationTest
6744
deploy-artifacts:
6845
name: Deploy Artifacts
69-
needs: [ build, test, check-samples ]
46+
needs: [ build, test]
7047
uses: spring-io/spring-security-release-tools/.github/workflows/deploy-artifacts.yml@v1
7148
with:
7249
should-deploy-artifacts: ${{ needs.build.outputs.should-deploy-artifacts }}
7350
secrets: inherit
7451
deploy-docs:
7552
name: Deploy Docs
76-
needs: [ build, test, check-samples ]
53+
needs: [ build, test ]
7754
uses: spring-io/spring-security-release-tools/.github/workflows/deploy-docs.yml@v1
7855
with:
7956
should-deploy-docs: ${{ needs.build.outputs.should-deploy-artifacts }}
8057
secrets: inherit
8158
deploy-schema:
8259
name: Deploy Schema
83-
needs: [ build, test, check-samples ]
60+
needs: [ build, test ]
8461
uses: spring-io/spring-security-release-tools/.github/workflows/deploy-schema.yml@v1
8562
with:
8663
should-deploy-schema: ${{ needs.build.outputs.should-deploy-artifacts }}

.github/workflows/dependabot-auto-merge-forward.yml

-57
This file was deleted.

.github/workflows/gradle-wrapper-upgrade-execution.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ on:
44
schedule:
55
- cron: '0 2 * * *' # 2am UTC
66
workflow_dispatch:
7-
7+
permissions:
8+
pull-requests: write
89
jobs:
910
upgrade_wrapper:
1011
name: Execution

.github/workflows/mark-duplicate-dependabot-prs.yml

-45
This file was deleted.

0 commit comments

Comments
 (0)