Skip to content

Commit f54464b

Browse files
committed
[gha] Add explicit permissions
1 parent 53d493e commit f54464b

File tree

5 files changed

+10
-0
lines changed

5 files changed

+10
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 0 deletions
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/coveralls.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ name: Coveralls
22

33
on: [push, pull_request]
44

5+
permissions: read-all
6+
57
jobs:
68
build:
79
if: github.repository_owner == 'mybatis'

.github/workflows/sonar.yaml

Lines changed: 2 additions & 0 deletions
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

Lines changed: 2 additions & 0 deletions
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]')

.github/workflows/support.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ name: Spring Boot Support Samples
1818

1919
on: [push, pull_request]
2020

21+
permissions: read-all
22+
2123
jobs:
2224
test:
2325
runs-on: ${{ matrix.os }}

0 commit comments

Comments
 (0)