Skip to content

Commit 76c145f

Browse files
committed
Refine GitHub actions permissions
1 parent d57cb85 commit 76c145f

File tree

7 files changed

+11
-8
lines changed

7 files changed

+11
-8
lines changed

.github/workflows/build-and-deploy-snapshot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
branches:
55
- main
66
permissions:
7-
actions: write
7+
contents: read
88
concurrency:
99
group: ${{ github.workflow }}-${{ github.ref }}
1010
jobs:

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ on:
33
push:
44
branches:
55
- main
6+
permissions:
7+
contents: read
68
concurrency:
79
group: ${{ github.workflow }}-${{ github.ref }}
810
jobs:

.github/workflows/codeql.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
name: "CodeQL Advanced"
2-
32
on:
43
push:
54
pull_request:
65
workflow_dispatch:
76
schedule:
8-
# https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#schedule
9-
- cron: '0 5 * * *'
7+
- cron: '45 0 * * 1'
108
permissions: read-all
119
jobs:
1210
codeql-analysis-call:
1311
permissions:
1412
actions: read
1513
contents: read
1614
security-events: write
17-
uses: spring-io/github-actions/.github/workflows/codeql-analysis.yml@1
15+
uses: spring-io/github-actions/.github/workflows/codeql-analysis.yml@6e66995f7d29de1e4ff76e4f0def7a10163fe910

.github/workflows/delete-staged-release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
build-version:
66
description: 'Version of the build to delete'
77
required: true
8+
permissions:
9+
contents: read
810
jobs:
911
delete-staged-release:
1012
name: Delete Staged Release

.github/workflows/release-milestone.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
tags:
55
- v2.0.0-M[1-9]
66
- v2.0.0-RC[1-9]
7+
permissions:
8+
contents: read
79
concurrency:
810
group: ${{ github.workflow }}-${{ github.ref }}
911
jobs:

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ on:
33
push:
44
tags:
55
- v2.0.[0-9]+
6+
permissions:
7+
contents: read
68
concurrency:
79
group: ${{ github.workflow }}-${{ github.ref }}
810
jobs:

.github/workflows/update-antora-ui-spring.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
name: Update Antora UI Spring
2-
32
on:
43
schedule:
54
- cron: '0 10 * * *' # Once per day at 10am UTC
65
workflow_dispatch:
7-
86
permissions:
97
pull-requests: write
108
issues: write
119
contents: write
12-
1310
jobs:
1411
update-antora-ui-spring:
1512
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)