Skip to content

Commit 08d6a27

Browse files
Copilotjan-olaveidedependabot[bot]
authored
Add GitHub Actions workflow for manual snapshot deployment to GPR (#1088)
* Add license information to pom.xml (#1079) * Bump org.junit.jupiter:junit-jupiter-engine from 6.0.0 to 6.0.1 (#1081) Bumps [org.junit.jupiter:junit-jupiter-engine](https://github.com/junit-team/junit-framework) from 6.0.0 to 6.0.1. - [Release notes](https://github.com/junit-team/junit-framework/releases) - [Commits](junit-team/junit-framework@r6.0.0...r6.0.1) --- updated-dependencies: - dependency-name: org.junit.jupiter:junit-jupiter-engine dependency-version: 6.0.1 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump no.nav.security:mock-oauth2-server from 3.0.0 to 3.0.1 (#1082) Bumps [no.nav.security:mock-oauth2-server](https://github.com/navikt/mock-oauth2-server) from 3.0.0 to 3.0.1. - [Release notes](https://github.com/navikt/mock-oauth2-server/releases) - [Commits](navikt/mock-oauth2-server@3.0.0...3.0.1) --- updated-dependencies: - dependency-name: no.nav.security:mock-oauth2-server dependency-version: 3.0.1 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump com.nimbusds:nimbus-jose-jwt from 10.5 to 10.6 (#1083) Bumps [com.nimbusds:nimbus-jose-jwt](https://bitbucket.org/connect2id/nimbus-jose-jwt) from 10.5 to 10.6. - [Changelog](https://bitbucket.org/connect2id/nimbus-jose-jwt/src/master/CHANGELOG.txt) - [Commits](https://bitbucket.org/connect2id/nimbus-jose-jwt/branches/compare/10.6..10.5) --- updated-dependencies: - dependency-name: com.nimbusds:nimbus-jose-jwt dependency-version: '10.6' dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump com.nimbusds:oauth2-oidc-sdk from 11.30 to 11.30.1 (#1084) Bumps [com.nimbusds:oauth2-oidc-sdk](https://bitbucket.org/connect2id/oauth-2.0-sdk-with-openid-connect-extensions) from 11.30 to 11.30.1. - [Changelog](https://bitbucket.org/connect2id/oauth-2.0-sdk-with-openid-connect-extensions/src/master/CHANGELOG.txt) - [Commits](https://bitbucket.org/connect2id/oauth-2.0-sdk-with-openid-connect-extensions/branches/compare/11.30.1..11.30) --- updated-dependencies: - dependency-name: com.nimbusds:oauth2-oidc-sdk dependency-version: 11.30.1 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump mikepenz/action-junit-report from 5 to 6 (#1080) * Bump org.wiremock:wiremock-standalone from 3.13.1 to 3.13.2 (#1085) Bumps [org.wiremock:wiremock-standalone](https://github.com/wiremock/wiremock) from 3.13.1 to 3.13.2. - [Release notes](https://github.com/wiremock/wiremock/releases) - [Commits](https://github.com/wiremock/wiremock/commits) --- updated-dependencies: - dependency-name: org.wiremock:wiremock-standalone dependency-version: 3.13.2 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Initial plan * Add GitHub Actions workflow to deploy snapshots to GitHub Packages Co-authored-by: jan-olaveide <80393418+jan-olaveide@users.noreply.github.com> * Change workflow trigger to manual workflow_dispatch Co-authored-by: jan-olaveide <80393418+jan-olaveide@users.noreply.github.com> --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Jan Olav Eide <jan.olav.eide@gmail.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: jan-olaveide <80393418+jan-olaveide@users.noreply.github.com>
1 parent c22e1c5 commit 08d6a27

File tree

6 files changed

+46
-7
lines changed

6 files changed

+46
-7
lines changed

.github/workflows/build-master.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
run: ./mvnw package --settings .github/settings.xml -Pgithub
4747

4848
- name: Publish Test Report
49-
uses: mikepenz/action-junit-report@v5
49+
uses: mikepenz/action-junit-report@v6
5050
if: always() # always run even if the previous step fails
5151
with:
5252
include_time_in_summary: 'true'
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Deploy Snapshot to GitHub Packages
2+
3+
on:
4+
workflow_dispatch:
5+
6+
permissions:
7+
contents: read
8+
packages: write
9+
10+
jobs:
11+
deploy-snapshot:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v5
16+
17+
- name: Set up JDK 21
18+
uses: actions/setup-java@v5
19+
with:
20+
java-version: 21
21+
distribution: temurin
22+
cache: maven
23+
24+
- name: Setup build cache
25+
uses: actions/cache@v4
26+
with:
27+
path: ~/.m2/repository
28+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
29+
restore-keys: |
30+
${{ runner.os }}-maven-
31+
32+
- name: Deploy snapshot to GitHub Packages
33+
env:
34+
GITHUB_USERNAME: ${{ github.actor }}
35+
GITHUB_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
36+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37+
run: |
38+
./mvnw -Pgithub --settings .github/settings.xml --batch-mode deploy

pom.xml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
architecture, with emphasis on OpenID Connect ID Tokens.
1313
</description>
1414
<url>https://github.com/navikt/token-support</url>
15+
1516
<licenses>
1617
<license>
1718
<name>MIT License</name>
@@ -62,8 +63,8 @@
6263
<ktor.version>2.3.12</ktor.version>
6364
<ktor3.version>3.0.1</ktor3.version>
6465
<kotlin.code.style>official</kotlin.code.style>
65-
<mock-oauth2-server.version>3.0.0</mock-oauth2-server.version>
66-
<nimbus.jose.jwt.version>10.5</nimbus.jose.jwt.version>
66+
<mock-oauth2-server.version>3.0.1</mock-oauth2-server.version>
67+
<nimbus.jose.jwt.version>10.6</nimbus.jose.jwt.version>
6768
<kotest.version>5.9.1</kotest.version>
6869
<kotlin.compiler.jvmTarget>21</kotlin.compiler.jvmTarget>
6970
</properties>
@@ -84,7 +85,7 @@
8485
<dependency>
8586
<groupId>org.junit.jupiter</groupId>
8687
<artifactId>junit-jupiter-engine</artifactId>
87-
<version>6.0.0</version>
88+
<version>6.0.1</version>
8889
</dependency>
8990
</dependencies>
9091
</plugin>

token-validation-ktor-demo/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
<dependency>
4949
<groupId>org.wiremock</groupId>
5050
<artifactId>wiremock-standalone</artifactId>
51-
<version>3.13.1</version>
51+
<version>3.13.2</version>
5252
<scope>test</scope>
5353
</dependency>
5454
<dependency>

token-validation-ktor-v2/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
<dependency>
4141
<groupId>org.wiremock</groupId>
4242
<artifactId>wiremock-standalone</artifactId>
43-
<version>3.13.1</version>
43+
<version>3.13.2</version>
4444
<scope>test</scope>
4545
</dependency>
4646
<dependency>

token-validation-ktor-v3/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
<dependency>
4646
<groupId>org.wiremock</groupId>
4747
<artifactId>wiremock-standalone</artifactId>
48-
<version>3.13.1</version>
48+
<version>3.13.2</version>
4949
<scope>test</scope>
5050
</dependency>
5151
<dependency>

0 commit comments

Comments
 (0)