Skip to content

Commit 006b9b9

Browse files
committed
master->main
Closes gh-9683
1 parent 32ac31c commit 006b9b9

File tree

14 files changed

+20
-23
lines changed

14 files changed

+20
-23
lines changed

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

+5-5
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: CI
33
on:
44
push:
55
branches:
6-
- master
6+
- main
77
schedule:
88
- cron: '0 10 * * *' # Once per day at 10am UTC
99
workflow_dispatch: # Manual trigger
@@ -102,16 +102,16 @@ jobs:
102102
uses: actions/setup-java@v1
103103
with:
104104
java-version: '11'
105-
- name: Run Sonar on given (non-master) branch
106-
if: ${{ github.ref != 'refs/heads/master' }}
105+
- name: Run Sonar on given (non-main) branch
106+
if: ${{ github.ref != 'refs/heads/main' }}
107107
run: |
108108
export BRANCH=${GITHUB_REF#refs/heads/}
109109
export GRADLE_ENTERPRISE_CACHE_USERNAME="$GRADLE_ENTERPRISE_CACHE_USER"
110110
export GRADLE_ENTERPRISE_CACHE_PASSWORD="$GRADLE_ENTERPRISE_CACHE_PASSWORD"
111111
export GRADLE_ENTERPRISE_ACCESS_KEY="$GRADLE_ENTERPRISE_SECRET_ACCESS_KEY"
112112
./gradlew sonarqube -PartifactoryUsername="$ARTIFACTORY_USERNAME" -PartifactoryPassword="$ARTIFACTORY_PASSWORD" -PexcludeProjects='**/samples/**' -Dsonar.projectKey="spring-security-${GITHUB_REF#refs/heads/}" -Dsonar.projectName="spring-security-${GITHUB_REF#refs/heads/}" -Dsonar.host.url="$SONAR_URL" -Dsonar.login="$SONAR_TOKEN" --stacktrace
113-
- name: Run Sonar on master
114-
if: ${{ github.ref == 'refs/heads/master' }}
113+
- name: Run Sonar on main
114+
if: ${{ github.ref == 'refs/heads/main' }}
115115
run: |
116116
export GRADLE_ENTERPRISE_CACHE_USERNAME="$GRADLE_ENTERPRISE_CACHE_USER"
117117
export GRADLE_ENTERPRISE_CACHE_PASSWORD="$GRADLE_ENTERPRISE_CACHE_PASSWORD"

CONTRIBUTING.adoc

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ _Please refer back to this document as a checklist before issuing any pull reque
44

55
= Code of Conduct
66

7-
Please see our https://github.com/spring-projects/.github/blob/master/CODE_OF_CONDUCT.md[code of conduct].
7+
Please see our https://github.com/spring-projects/.github/blob/main/CODE_OF_CONDUCT.md[code of conduct].
88

99
= Similar but different
1010

@@ -43,9 +43,9 @@ If you're considering anything more than correcting a typo or fixing a minor bug
4343

4444
If you have not previously done so, please fill out and submit the https://cla.pivotal.io/sign/spring[Contributor License Agreement].
4545

46-
= Create your branch from master
46+
= Create your branch from main
4747

48-
Create your topic branch to be submitted as a pull request from master. The Spring team will consider your pull request for backporting on a case-by-case basis; you don't need to worry about submitting anything for backporting.
48+
Create your topic branch to be submitted as a pull request from main. The Spring team will consider your pull request for backporting on a case-by-case basis; you don't need to worry about submitting anything for backporting.
4949

5050
= Use short branch names
5151

README.adoc

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
image::https://badges.gitter.im/Join%20Chat.svg[Gitter,link=https://gitter.im/spring-projects/spring-security?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge]
22

3-
image:https://github.com/spring-projects/spring-security/workflows/CI/badge.svg?branch=master["Build Status", link="https://github.com/spring-projects/spring-security/actions?query=workflow%3ACI"]
3+
image:https://github.com/spring-projects/spring-security/workflows/CI/badge.svg?branch=main["Build Status", link="https://github.com/spring-projects/spring-security/actions?query=workflow%3ACI"]
44

55
image:https://img.shields.io/badge/Revved%20up%20by-Gradle%20Enterprise-06A0CE?logo=Gradle&labelColor=02303A["Revved up by Gradle Enterprise", link="https://ge.spring.io/scans?search.rootProjectNames=spring-security"]
66

@@ -12,7 +12,7 @@ a minimum and also requires Java 8.
1212
For a detailed list of features and access to the latest release, please visit https://spring.io/projects[Spring projects].
1313

1414
== Code of Conduct
15-
Please see our https://github.com/spring-projects/.github/blob/master/CODE_OF_CONDUCT.md[code of conduct]
15+
Please see our https://github.com/spring-projects/.github/blob/main/CODE_OF_CONDUCT.md[code of conduct]
1616

1717
== Downloading Artifacts
1818
See https://docs.spring.io/spring-security/site/docs/current/reference/html5/#getting[Getting Spring Security] for how to obtain Spring Security.
@@ -60,7 +60,7 @@ Check out the https://stackoverflow.com/questions/tagged/spring-security[Spring
6060
https://spring.io/services[Commercial support] is available too.
6161

6262
== Contributing
63-
https://help.github.com/articles/creating-a-pull-request[Pull requests] are welcome; see the https://github.com/spring-projects/spring-security/blob/master/CONTRIBUTING.adoc[contributor guidelines] for details.
63+
https://help.github.com/articles/creating-a-pull-request[Pull requests] are welcome; see the https://github.com/spring-projects/spring-security/blob/main/CONTRIBUTING.adoc[contributor guidelines] for details.
6464

6565
== License
6666
Spring Security is Open Source software released under the

buildSrc/src/main/java/org/springframework/gradle/sagan/SaganApi.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
import java.util.Base64;
2424

2525
/**
26-
* Implements necessary calls to the Sagan API See https://github.com/spring-io/sagan/blob/master/sagan-site/src/docs/asciidoc/index.adoc
26+
* Implements necessary calls to the Sagan API See https://spring.io/restdocs/index.html
2727
*/
2828
public class SaganApi {
2929
private String baseUrl = "https://spring.io/api";

docs/guides/spring-security-docs-guides.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ ext.spec = copySpec {
2828
}
2929

3030
def getDownloadUrl() {
31-
snapshotBuild ? "https://github.com/spring-projects/spring-security/archive/master.zip" : "https://github.com/spring-projects/spring-security/archive/${project.version}.zip"
31+
snapshotBuild ? "https://github.com/spring-projects/spring-security/archive/main.zip" : "https://github.com/spring-projects/spring-security/archive/${project.version}.zip"
3232
}
3333

3434

docs/guides/src/docs/asciidoc/Guardfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ guard 'shell' do
55
watch(/^.*\.asc$/) {|m|
66
Asciidoctor.render_file(m[0], :to_dir => "build/", :safe => Asciidoctor::SafeMode::UNSAFE, :attributes=> {'toc' => '', 'idprefix' => '', 'idseparator' => '-', 'copycss' => '', 'icons' => 'font', 'source-highlighter' => 'prettify', 'sectanchors' => '', 'toc-placement' => 'preamble', 'revnumber' => '3.2.0.CI-SNAPSHOT',
77
'spring-security-version' => '3.2.0.CI-SNAPSHOT',
8-
'download-url' => 'https://github.com/spring-projects/spring-security/archive/master.zip',
8+
'download-url' => 'https://github.com/spring-projects/spring-security/archive/main.zip',
99
'include-maven-repository' => '_includes/maven-repository-snapshot.asc' })
1010
}
1111
end

docs/manual/spring-security-docs-manual.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ asciidoctor {
1414
}
1515

1616
asciidoctorj {
17-
def ghTag = snapshotBuild ? 'master' : project.version
17+
def ghTag = snapshotBuild ? 'main' : project.version
1818
def ghUrl = "https://github.com/spring-projects/spring-security/tree/$ghTag"
1919
attributes 'spring-security-version' : project.version,
2020
'spring-boot-version' : springBootVersion,

docs/manual/src/docs/asciidoc/_includes/about/community.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ The following are some of the best ways to get help:
1919
== Becoming Involved
2020
We welcome your involvement in the Spring Security project.
2121
There are many ways to contribute, including answering questions on Stack Overflow, writing new code, improving existing code, assisting with documentation, developing samples or tutorials, reporting bugs, or simply making suggestions.
22-
For more information, see our https://github.com/spring-projects/spring-security/blob/master/CONTRIBUTING.adoc[Contributing] documentation.
22+
For more information, see our https://github.com/spring-projects/spring-security/blob/main/CONTRIBUTING.adoc[Contributing] documentation.
2323

2424
[[community-source]]
2525
== Source Code

docs/manual/src/docs/asciidoc/_includes/reactive/x509.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,4 @@ public SecurityWebFilterChain securityWebFilterChain(ServerHttpSecurity http) {
4949

5050
In this example, a username is extracted from the OU field of a client certificate instead of CN, and account lookup using `ReactiveUserDetailsService` is not performed at all. Instead, if the provided certificate issued to an OU named "Trusted Org Unit", a request will be authenticated.
5151

52-
For an example of configuring Netty and `WebClient` or `curl` command-line tool to use mutual TLS and enable X.509 authentication, please refer to https://github.com/spring-projects/spring-security/tree/master/samples/boot/webflux-x509.
52+
For an example of configuring Netty and `WebClient` or `curl` command-line tool to use mutual TLS and enable X.509 authentication, please refer to https://github.com/spring-projects/spring-security-samples/tree/main/servlet/java-configuration/authentication/x509.

docs/manual/src/docs/asciidoc/_includes/servlet/appendix/namespace.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This appendix provides a reference to the elements available in the security nam
44
If you haven't used the namespace before, please read the <<ns-config,introductory chapter>> on namespace configuration, as this is intended as a supplement to the information there.
55
Using a good quality XML editor while editing a configuration based on the schema is recommended as this will provide contextual information on which elements and attributes are available as well as comments explaining their purpose.
66
The namespace is written in https://relaxng.org/[RELAX NG] Compact format and later converted into an XSD schema.
7-
If you are familiar with this format, you may wish to examine the https://raw.githubusercontent.com/spring-projects/spring-security/master/config/src/main/resources/org/springframework/security/config/spring-security-4.1.rnc[schema file] directly.
7+
If you are familiar with this format, you may wish to examine the https://raw.githubusercontent.com/spring-projects/spring-security/main/config/src/main/resources/org/springframework/security/config/spring-security-4.1.rnc[schema file] directly.
88

99
[[nsa-web]]
1010
=== Web Application Security

docs/manual/src/docs/asciidoc/_includes/servlet/integrations/servlet-api.adoc

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
[[servletapi]]
22
== Servlet API integration
33
This section describes how Spring Security is integrated with the Servlet API.
4-
The https://github.com/spring-projects/spring-security/tree/master/samples/xml/servletapi[servletapi-xml] sample application demonstrates the usage of each of these methods.
54

65

76
[[servletapi-25]]

docs/manual/src/docs/asciidoc/_includes/servlet/integrations/websocket.adoc

-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
Spring Security 4 added support for securing https://docs.spring.io/spring/docs/current/spring-framework-reference/html/websocket.html[Spring's WebSocket support].
55
This section describes how to use Spring Security's WebSocket support.
66

7-
NOTE: You can find a complete working sample of WebSocket security at https://github.com/spring-projects/spring-session/tree/master/spring-session-samples/spring-session-sample-boot-websocket.
8-
97
.Direct JSR-356 Support
108
****
119
Spring Security does not provide direct JSR-356 support because doing so would provide little value.

docs/manual/src/docs/asciidoc/_includes/servlet/java-configuration/index.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Since Spring Security 3.2 there has been Spring Security Java Configuration supp
77

88
If you are familiar with the <<ns-config>> then you should find quite a few similarities between it and the Security Java Configuration support.
99

10-
NOTE: Spring Security provides https://github.com/spring-projects/spring-security/tree/master/samples/javaconfig[lots of sample applications] which demonstrate the use of Spring Security Java Configuration.
10+
NOTE: Spring Security provides https://github.com/spring-projects/spring-security-samples/tree/main/servlet/java-configuration[lots of sample applications] which demonstrate the use of Spring Security Java Configuration.
1111

1212
== Hello Web Security Java Configuration
1313

docs/manual/src/docs/asciidoc/_includes/servlet/kotlin-configuration/index.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Spring Security Kotlin Configuration support has been available since Spring Security 5.3.
55
It enables users to easily configure Spring Security using a native Kotlin DSL.
66

7-
NOTE: Spring Security provides https://github.com/spring-projects/spring-security/tree/master/samples/boot/kotlin[a sample application] which demonstrates the use of Spring Security Kotlin Configuration.
7+
NOTE: Spring Security provides https://github.com/spring-projects/spring-security-samples/tree/main/servlet/spring-boot/kotlin/hello-security[a sample application] which demonstrates the use of Spring Security Kotlin Configuration.
88

99
[[kotlin-config-httpsecurity]]
1010
== HttpSecurity

0 commit comments

Comments
 (0)