Skip to content

Commit 3f6ce78

Browse files
authored
Merge branch 'master' into dependabot/github_actions/codecov/codecov-action-4.5.0
2 parents f942cd2 + e9dcbd2 commit 3f6ce78

110 files changed

Lines changed: 5866 additions & 99 deletions

File tree

Some content is hidden

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

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
* @auth0/dx-sdks-engineer
1+
* @auth0/project-dx-sdks-engineer-codeowner
Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,17 @@
11
name: Publish release to Java
22

33
inputs:
4+
java-version:
5+
required: true
46
ossr-username:
57
required: true
6-
ossr-password:
8+
ossr-token:
79
required: true
810
signing-key:
911
required: true
1012
signing-password:
1113
required: true
12-
java-version:
13-
required: true
14-
is-android:
15-
required: true
16-
version:
17-
required: true
14+
1815

1916
runs:
2017
using: composite
@@ -33,12 +30,11 @@ runs:
3330
3431
- uses: gradle/wrapper-validation-action@56b90f209b02bf6d1deae490e9ef18b21a389cd4 # pin@1.1.0
3532

36-
- name: Publish Java
37-
shell: bash
38-
if: inputs.is-android == 'false'
39-
run: ./gradlew clean assemble sign publishMavenJavaPublicationToMavenRepository -PisSnapshot=false -Pversion="${{ inputs.version }}" -PossrhUsername="${{ inputs.ossr-username }}" -PossrhPassword="${{ inputs.ossr-password }}" -PsigningKey="${{ inputs.signing-key }}" -PsigningPassword="${{ inputs.signing-password }}"
40-
41-
- name: Publish Android
33+
- name: Publish Android/Java Packages to Maven
4234
shell: bash
43-
if: inputs.is-android == 'true'
44-
run: ./gradlew clean assemble sign publishAndroidLibraryPublicationToMavenRepository -PisSnapshot=false -Pversion="${{ inputs.version }}" -PossrhUsername="${{ inputs.ossr-username }}" -PossrhPassword="${{ inputs.ossr-password }}" -PsigningKey="${{ inputs.signing-key }}" -PsigningPassword="${{ inputs.signing-password }}"
35+
run: ./gradlew publish -PisSnapshot=false --stacktrace
36+
env:
37+
MAVEN_USERNAME: ${{ inputs.ossr-username }}
38+
MAVEN_PASSWORD: ${{ inputs.ossr-token }}
39+
SIGNING_KEY: ${{ inputs.signing-key}}
40+
SIGNING_PASSWORD: ${{ inputs.signing-password}}
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
name: "Reversing Labs Scanner"
2+
description: "Runs the Reversing Labs scanner on a specified artifact."
3+
inputs:
4+
artifact-path:
5+
description: "Path to the artifact to be scanned."
6+
required: true
7+
version:
8+
description: "Version of the artifact."
9+
required: true
10+
11+
runs:
12+
using: "composite"
13+
steps:
14+
- name: Set up Python
15+
uses: actions/setup-python@v4
16+
with:
17+
python-version: "3.10"
18+
19+
- name: Install Python dependencies
20+
shell: bash
21+
run: |
22+
pip install boto3 requests
23+
24+
- name: Configure AWS credentials
25+
uses: aws-actions/configure-aws-credentials@v1
26+
with:
27+
role-to-assume: ${{ env.PRODSEC_TOOLS_ARN }}
28+
aws-region: us-east-1
29+
mask-aws-account-id: true
30+
31+
- name: Install RL Wrapper
32+
shell: bash
33+
run: |
34+
pip install rl-wrapper>=1.0.0 --index-url "https://${{ env.PRODSEC_TOOLS_USER }}:${{ env.PRODSEC_TOOLS_TOKEN }}@a0us.jfrog.io/artifactory/api/pypi/python-local/simple"
35+
36+
- name: Run RL Scanner
37+
shell: bash
38+
env:
39+
RLSECURE_LICENSE: ${{ env.RLSECURE_LICENSE }}
40+
RLSECURE_SITE_KEY: ${{ env.RLSECURE_SITE_KEY }}
41+
SIGNAL_HANDLER_TOKEN: ${{ env.SIGNAL_HANDLER_TOKEN }}
42+
PYTHONUNBUFFERED: 1
43+
run: |
44+
if [ ! -f "${{ inputs.artifact-path }}" ]; then
45+
echo "Artifact not found: ${{ inputs.artifact-path }}"
46+
exit 1
47+
fi
48+
49+
rl-wrapper \
50+
--artifact "${{ inputs.artifact-path }}" \
51+
--name "${{ github.event.repository.name }}" \
52+
--version "${{ inputs.version }}" \
53+
--repository "${{ github.repository }}" \
54+
--commit "${{ github.sha }}" \
55+
--build-env "github_actions" \
56+
--suppress_output
57+
58+
# Check the outcome of the scanner
59+
if [ $? -ne 0 ]; then
60+
echo "RL Scanner failed."
61+
echo "scan-status=failed" >> $GITHUB_ENV
62+
exit 1
63+
else
64+
echo "RL Scanner passed."
65+
echo "scan-status=success" >> $GITHUB_ENV
66+
fi
67+
68+
outputs:
69+
scan-status:
70+
description: "The outcome of the scan process."
71+
value: ${{ env.scan-status }}

.github/workflows/java-release.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,11 @@ on:
66
java-version:
77
required: true
88
type: string
9-
is-android:
10-
required: true
11-
type: string
9+
1210
secrets:
1311
ossr-username:
1412
required: true
15-
ossr-password:
13+
ossr-token:
1614
required: true
1715
signing-key:
1816
required: true
@@ -70,10 +68,8 @@ jobs:
7068
- uses: ./.github/actions/maven-publish
7169
with:
7270
java-version: ${{ inputs.java-version }}
73-
is-android: ${{ inputs.is-android }}
74-
version: ${{ steps.get_version.outputs.version }}
7571
ossr-username: ${{ secrets.ossr-username }}
76-
ossr-password: ${{ secrets.ossr-password }}
72+
ossr-token: ${{ secrets.ossr-token }}
7773
signing-key: ${{ secrets.signing-key }}
7874
signing-password: ${{ secrets.signing-password }}
7975

.github/workflows/release.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,33 @@ on:
88

99
permissions:
1010
contents: write
11+
id-token: write # This is required for requesting the JWT
1112

1213
### TODO: Replace instances of './.github/workflows/' w/ `auth0/dx-sdk-actions/workflows/` and append `@latest` after the common `dx-sdk-actions` repo is made public.
1314
### TODO: Also remove `get-prerelease`, `get-release-notes`, `get-version`, `maven-publish`, `release-create`, and `tag-exists` actions from this repo's .github/actions folder once the repo is public.
1415
### TODO: Also remove `java-release` workflow from this repo's .github/workflows folder once the repo is public.
1516

1617
jobs:
18+
rl-scanner:
19+
uses: ./.github/workflows/rl-scanner.yml
20+
with:
21+
java-version: 8
22+
artifact-name: "auth0-java.tgz"
23+
secrets:
24+
RLSECURE_LICENSE: ${{ secrets.RLSECURE_LICENSE }}
25+
RLSECURE_SITE_KEY: ${{ secrets.RLSECURE_SITE_KEY }}
26+
SIGNAL_HANDLER_TOKEN: ${{ secrets.SIGNAL_HANDLER_TOKEN }}
27+
PRODSEC_TOOLS_USER: ${{ secrets.PRODSEC_TOOLS_USER }}
28+
PRODSEC_TOOLS_TOKEN: ${{ secrets.PRODSEC_TOOLS_TOKEN }}
29+
PRODSEC_TOOLS_ARN: ${{ secrets.PRODSEC_TOOLS_ARN }}
1730
release:
1831
uses: ./.github/workflows/java-release.yml
32+
needs: rl-scanner
1933
with:
2034
java-version: 8.0.382-tem
21-
is-android: false
2235
secrets:
2336
ossr-username: ${{ secrets.OSSR_USERNAME }}
24-
ossr-password: ${{ secrets.OSSR_PASSWORD }}
37+
ossr-token: ${{ secrets.OSSR_TOKEN }}
2538
signing-key: ${{ secrets.SIGNING_KEY }}
2639
signing-password: ${{ secrets.SIGNING_PASSWORD }}
2740
github-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/rl-scanner.yml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
name: RL-Secure Workflow
2+
3+
on:
4+
workflow_call:
5+
inputs:
6+
java-version:
7+
required: true
8+
type: string
9+
artifact-name:
10+
required: true
11+
type: string
12+
secrets:
13+
RLSECURE_LICENSE:
14+
required: true
15+
RLSECURE_SITE_KEY:
16+
required: true
17+
SIGNAL_HANDLER_TOKEN:
18+
required: true
19+
PRODSEC_TOOLS_USER:
20+
required: true
21+
PRODSEC_TOOLS_TOKEN:
22+
required: true
23+
PRODSEC_TOOLS_ARN:
24+
required: true
25+
jobs:
26+
checkout-build-scan-only:
27+
if: github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request' && github.event.pull_request.merged && startsWith(github.event.pull_request.head.ref, 'release/'))
28+
runs-on: ubuntu-latest
29+
outputs:
30+
scan-status: ${{ steps.rl-scan-conclusion.outcome }}
31+
32+
steps:
33+
- name: Checkout code
34+
uses: actions/checkout@v4
35+
36+
- name: Set up Java
37+
uses: actions/setup-java@v4
38+
with:
39+
distribution: temurin
40+
java-version: ${{ inputs.java-version }}
41+
42+
- name: Build with Gradle
43+
uses: gradle/gradle-build-action@4c39dd82cd5e1ec7c6fa0173bb41b4b6bb3b86ff
44+
with:
45+
arguments: assemble apiDiff check jacocoTestReport --continue --console=plain
46+
47+
- id: get_version
48+
uses: ./.github/actions/get-version
49+
50+
- name: Create tgz build artifact
51+
run: |
52+
tar -czvf ${{ inputs.artifact-name }} *
53+
54+
- name: Run RL Scanner
55+
id: rl-scan-conclusion
56+
uses: ./.github/actions/rl-scanner
57+
with:
58+
artifact-path: "$(pwd)/${{ inputs.artifact-name }}"
59+
version: "${{ steps.get_version.outputs.version }}"
60+
env:
61+
RLSECURE_LICENSE: ${{ secrets.RLSECURE_LICENSE }}
62+
RLSECURE_SITE_KEY: ${{ secrets.RLSECURE_SITE_KEY }}
63+
SIGNAL_HANDLER_TOKEN: ${{ secrets.SIGNAL_HANDLER_TOKEN }}
64+
PRODSEC_TOOLS_USER: ${{ secrets.PRODSEC_TOOLS_USER }}
65+
PRODSEC_TOOLS_TOKEN: ${{ secrets.PRODSEC_TOOLS_TOKEN }}
66+
PRODSEC_TOOLS_ARN: ${{ secrets.PRODSEC_TOOLS_ARN }}
67+
68+
- name: Output scan result
69+
run: echo "scan-status=${{ steps.rl-scan-conclusion.outcome }}" >> $GITHUB_ENV

.github/workflows/semgrep.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Semgrep
22

33
on:
44
merge_group:
5-
pull_request_target:
5+
pull_request:
66
types:
77
- opened
88
- synchronize
@@ -20,16 +20,8 @@ concurrency:
2020
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
2121

2222
jobs:
23-
authorize:
24-
name: Authorize
25-
environment: ${{ github.actor != 'dependabot[bot]' && github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.full_name != github.repository && 'external' || 'internal' }}
26-
runs-on: ubuntu-latest
27-
steps:
28-
- run: true
2923

3024
run:
31-
needs: authorize # Require approval before running on forked pull requests
32-
3325
name: Check for Vulnerabilities
3426
runs-on: ubuntu-latest
3527

.github/workflows/snyk.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Snyk
33
on:
44
merge_group:
55
workflow_dispatch:
6-
pull_request_target:
6+
pull_request:
77
types:
88
- opened
99
- synchronize
@@ -21,16 +21,8 @@ concurrency:
2121
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
2222

2323
jobs:
24-
authorize:
25-
name: Authorize
26-
environment: ${{ github.actor != 'dependabot[bot]' && github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.full_name != github.repository && 'external' || 'internal' }}
27-
runs-on: ubuntu-latest
28-
steps:
29-
- run: true
3024

3125
check:
32-
needs: authorize
33-
3426
name: Check for Vulnerabilities
3527
runs-on: ubuntu-latest
3628

.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.12.0
1+
2.17.0

CHANGELOG.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,40 @@
11
# Change Log
22

3+
## [2.17.0](https://github.com/auth0/auth0-java/tree/2.17.0) (2025-01-08)
4+
[Full Changelog](https://github.com/auth0/auth0-java/compare/2.16.0...2.17.0)
5+
6+
**Added**
7+
- Added Support for Self-Service-Profile [\#683](https://github.com/auth0/auth0-java/pull/683) ([tanya732](https://github.com/tanya732))
8+
- Added support for Back Channel Login [\#682](https://github.com/auth0/auth0-java/pull/682) ([tanya732](https://github.com/tanya732))
9+
10+
## [2.16.0](https://github.com/auth0/auth0-java/tree/2.16.0) (2024-12-03)
11+
[Full Changelog](https://github.com/auth0/auth0-java/compare/2.15.0...2.16.0)
12+
13+
**Added**
14+
- Added support for custom prompts [\#680](https://github.com/auth0/auth0-java/pull/680) ([tanya732](https://github.com/tanya732))
15+
- Added phone number identifier in signup Auth API [\#679](https://github.com/auth0/auth0-java/pull/679) ([tanya732](https://github.com/tanya732))
16+
- Added is_signup_enabled field to OrganizationConnection [\#677](https://github.com/auth0/auth0-java/pull/677) ([tanya732](https://github.com/tanya732))
17+
18+
## [2.15.0](https://github.com/auth0/auth0-java/tree/2.15.0) (2024-10-31)
19+
[Full Changelog](https://github.com/auth0/auth0-java/compare/2.14.0...2.15.0)
20+
21+
**Added**
22+
- Added support for byok [\#673](https://github.com/auth0/auth0-java/pull/673) ([tanya732](https://github.com/tanya732))
23+
24+
## [2.14.0](https://github.com/auth0/auth0-java/tree/2.14.0) (2024-10-16)
25+
[Full Changelog](https://github.com/auth0/auth0-java/compare/2.13.0...2.14.0)
26+
27+
**Added**
28+
- SDKs support for Control Your Own Key [\#671](https://github.com/auth0/auth0-java/pull/671) ([tanya732](https://github.com/tanya732))
29+
- Added client credentials changes [\#670](https://github.com/auth0/auth0-java/pull/670) ([tanya732](https://github.com/tanya732))
30+
- Added support for HRI phase 2 changes [\#668](https://github.com/auth0/auth0-java/pull/668) ([tanya732](https://github.com/tanya732))
31+
32+
## [2.13.0](https://github.com/auth0/auth0-java/tree/2.13.0) (2024-09-11)
33+
[Full Changelog](https://github.com/auth0/auth0-java/compare/2.12.0...2.13.0)
34+
35+
**Added**
36+
- Add sessions and refresh tokens to Users Management API [\#661](https://github.com/auth0/auth0-java/pull/661) ([tanya732](https://github.com/tanya732))
37+
338
## [2.12.0](https://github.com/auth0/auth0-java/tree/2.12.0) (2024-05-29)
439
[Full Changelog](https://github.com/auth0/auth0-java/compare/2.11.0...2.12.0)
540

0 commit comments

Comments
 (0)