Skip to content

Commit eac3b17

Browse files
committed
[gha] Update explicit permissions
1 parent 058cf5e commit eac3b17

File tree

5 files changed

+9
-1
lines changed

5 files changed

+9
-1
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/codeql.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ jobs:
3131
uses: actions/setup-java@v4
3232
with:
3333
cache: maven
34-
java-version: 21
3534
distribution: 'temurin'
35+
java-version: 21
3636

3737
- name: Initialize CodeQL
3838
uses: github/codeql-action/init@v3

.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
coveralls:
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]')

0 commit comments

Comments
 (0)