Skip to content

Commit 64d29b8

Browse files
Joonas HiltunenJontzii
authored andcommitted
Add permissions for workflows and update 3rd party actions
1 parent b76b47f commit 64d29b8

File tree

4 files changed

+20
-8
lines changed

4 files changed

+20
-8
lines changed

.github/workflows/cd.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,13 @@ on:
44
push:
55
branches:
66
- main
7-
- "releases/**"
7+
- releases/**
88
pull_request:
99
workflow_dispatch:
1010

11+
permissions:
12+
contents: read
13+
1114
jobs:
1215
run_unit_tests:
1316
name: Run unit tests
@@ -25,7 +28,7 @@ jobs:
2528
permissions:
2629
id-token: write
2730
contents: read
28-
uses: HSLdevcom/jore4-tools/.github/workflows/shared-build-and-publish-docker-image.yml@shared-build-and-publish-docker-image-v1
31+
uses: HSLdevcom/jore4-tools/.github/workflows/shared-build-and-publish-docker-image.yml@shared-build-and-publish-docker-image-v6
2932
with:
3033
docker_image_name: jore4-auth
3134
build_arm64_image: true

.github/workflows/check-renovatebot-config.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,12 @@ name: Check renovatebot config
33
on:
44
pull_request:
55

6+
permissions:
7+
contents: read
8+
69
jobs:
710
validate:
811
name: Validate renovatebot config
9-
uses: HSLdevcom/jore4-tools/.github/workflows/shared-check-renovatebot-config.yml@shared-check-renovatebot-config-v1
12+
uses: HSLdevcom/jore4-tools/.github/workflows/shared-check-renovatebot-config.yml@shared-check-renovatebot-config-v2
1013
with:
1114
config_file_path: .github/renovate.json5

.github/workflows/ci.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,20 @@ on:
44
# this workflow is only called by others, won't be executed on itself
55
workflow_call:
66

7+
permissions:
8+
contents: read
9+
710
jobs:
811
tests:
912
name: Run auth backend tests
1013
runs-on: ubuntu-24.04
1114

1215
steps:
1316
- name: Checkout code
14-
uses: actions/checkout@v4
17+
uses: actions/checkout@v6
1518

1619
- name: Set up JDK 17
17-
uses: actions/setup-java@v4
20+
uses: actions/setup-java@v5
1821
with:
1922
java-version: "17"
2023
java-package: jdk

.github/workflows/ktlint.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
1-
name: 'ktlint'
1+
name: ktlint
22
on:
33
# this workflow is only called by others, won't be executed on itself
44
workflow_call:
55

6+
permissions:
7+
contents: read
8+
69
jobs:
710
spotless:
811
name: Check code is formatted with ktlint
912
runs-on: ubuntu-24.04
1013

1114
steps:
1215
- name: Checkout code
13-
uses: actions/checkout@v4
16+
uses: actions/checkout@v6
1417

1518
- name: Set up JDK 17
16-
uses: actions/setup-java@v4
19+
uses: actions/setup-java@v5
1720
with:
1821
java-version: "17"
1922
java-package: jdk

0 commit comments

Comments
 (0)