Skip to content

Commit 87bbdd9

Browse files
authored
Merge pull request sbt#7023 from sashashura/patch-1
GitHub Workflows security hardening
2 parents f0cb420 + 39d9a8f commit 87bbdd9

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ on:
33
pull_request:
44
push:
55

6+
permissions:
7+
contents: read # to fetch code (actions/checkout)
8+
69
jobs:
710
test:
811
strategy:

.github/workflows/dependency-graph.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@ name: Submit Dependency Graph
33
on:
44
push:
55
branches: [1.7.x] # default branch of the project
6+
permissions: {}
67
jobs:
78
submit-graph:
9+
permissions:
10+
contents: write # to submit the dependency graph
11+
812
name: Submit Dependency Graph
913
runs-on: ubuntu-latest # or windows-latest, or macOS-latest
1014
steps:

.github/workflows/nightly.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
# # 08:00 UTC = 03:00 EST
66
# - cron: '0 8 * * *'
77

8+
permissions:
9+
contents: read # to fetch code (actions/checkout)
10+
811
jobs:
912
deploy:
1013
strategy:

0 commit comments

Comments
 (0)