Skip to content

Commit 8babd96

Browse files
authored
ci: scope down GitHub Token permissions (#1571)
1 parent 5e486c0 commit 8babd96

File tree

6 files changed

+18
-0
lines changed

6 files changed

+18
-0
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ concurrency:
1616
group: ${{ github.workflow }}-${{ github.ref }}
1717
cancel-in-progress: true
1818

19+
permissions:
20+
contents: read
21+
1922
jobs:
2023
markdown-link-check:
2124
runs-on: ubuntu-latest

.github/workflows/maven_release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
types:
66
- published
77

8+
permissions:
9+
contents: read
10+
811
jobs:
912
ubuntu-latest-jdbc-wrapper-release-to-maven:
1013
name: 'Build And Release to Maven'

.github/workflows/maven_snapshot.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
- main
77
workflow_dispatch:
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
ubuntu-latest-jdbc-wrapper-snapshot-to-maven:
1114
name: 'Build And Upload Snapshot to Maven'

.github/workflows/remove-old-artifacts.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
# Every day at 1am
66
- cron: '0 1 * * *'
77

8+
permissions:
9+
actions: write
10+
811
jobs:
912
remove-old-artifacts:
1013
runs-on: ubuntu-latest

.github/workflows/run-hibernate-orm-tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
branches:
77
- main
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
hibernate-integration-tests:
1114
name: 'Run Hibernate ORM integration tests'

.github/workflows/run-standard-integration-tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ on:
1212
- '**/release_draft.yml'
1313
- '**/maven*.yml'
1414

15+
permissions:
16+
contents: read
17+
1518
jobs:
1619
standard-integration-tests:
1720
name: 'Run standard container integration tests'

0 commit comments

Comments
 (0)