Skip to content

Commit f13dfdf

Browse files
committed
Limit permissions on GitHub actions.
1 parent f46cfdf commit f13dfdf

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/maven.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
11
name: Java CI
2+
23
on:
34
push:
45
branches: [ main ]
56
pull_request:
67
branches: [ main ]
78
schedule:
89
- cron: "0 0 * * 0"
10+
workflow_dispatch:
11+
defaults:
12+
run:
13+
shell: bash
14+
permissions:
15+
contents: read
916

1017
jobs:
1118
build:

0 commit comments

Comments
 (0)