Skip to content

Commit f687888

Browse files
committed
Add permissions for workflows and update 3rd party actions
1 parent 07fe507 commit f687888

File tree

5 files changed

+23
-8
lines changed

5 files changed

+23
-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_kotlin_tests:
1316
name: Run Kotlin tests
@@ -20,7 +23,7 @@ jobs:
2023
permissions:
2124
id-token: write
2225
contents: read
23-
uses: HSLdevcom/jore4-tools/.github/workflows/shared-build-and-publish-docker-image.yml@shared-build-and-publish-docker-image-v1
26+
uses: HSLdevcom/jore4-tools/.github/workflows/shared-build-and-publish-docker-image.yml@shared-build-and-publish-docker-image-v6
2427
with:
2528
docker_image_name: jore4-map-matching
2629
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/generate-jooq.yml

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

10+
permissions:
11+
contents: read
12+
1013
env:
1114
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1215

@@ -17,7 +20,7 @@ jobs:
1720

1821
steps:
1922
- name: Checkout code
20-
uses: actions/checkout@v5
23+
uses: actions/checkout@v6
2124

2225
- name: Set up JDK 17
2326
uses: actions/setup-java@v5

.github/workflows/run-kotlin-tests.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ 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
env:
811
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
912

@@ -14,7 +17,7 @@ jobs:
1417

1518
steps:
1619
- name: Checkout code
17-
uses: actions/checkout@v5
20+
uses: actions/checkout@v6
1821

1922
- name: Start database dependencies
2023
run: ./development.sh start:deps

.github/workflows/test-docker-compose.yml

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

10+
permissions:
11+
contents: read
12+
1013
env:
1114
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1215

@@ -17,7 +20,7 @@ jobs:
1720

1821
steps:
1922
- name: Checkout code
20-
uses: actions/checkout@v5
23+
uses: actions/checkout@v6
2124

2225
- name: Start the database and the map-matching service
2326
run: ./development.sh start

0 commit comments

Comments
 (0)