Skip to content

Commit 953b1a3

Browse files
committed
[gha] Restrict access to read all
1 parent 0b6a51f commit 953b1a3

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

.github/workflows/ci.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ name: Java CI
22

33
on: [workflow_dispatch, push, pull_request]
44

5+
permissions: read-all
6+
57
jobs:
68
test:
79
runs-on: ${{ matrix.os }}

.github/workflows/site.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
branches:
66
- site
77

8+
permissions: read-all
9+
810
jobs:
911
build:
1012
if: github.repository_owner == 'mybatis' && ! contains(toJSON(github.event.head_commit.message), '[maven-release-plugin]')

.github/workflows/sonar.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
branches:
66
- master
77

8+
permissions: read-all
9+
810
jobs:
911
build:
1012
if: github.repository_owner == 'mybatis'

.github/workflows/sonatype.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
branches:
66
- master
77

8+
permissions: read-all
9+
810
jobs:
911
build:
1012
if: github.repository_owner == 'mybatis' && ! contains(toJSON(github.event.head_commit.message), '[maven-release-plugin]')

0 commit comments

Comments
 (0)