mirror of https://github.com/sbt/sbt.git
Merge pull request #7023 from sashashura/patch-1
GitHub Workflows security hardening
This commit is contained in:
commit
87bbdd9f9b
|
|
@ -3,6 +3,9 @@ on:
|
||||||
pull_request:
|
pull_request:
|
||||||
push:
|
push:
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read # to fetch code (actions/checkout)
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
strategy:
|
strategy:
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,12 @@ name: Submit Dependency Graph
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [1.7.x] # default branch of the project
|
branches: [1.7.x] # default branch of the project
|
||||||
|
permissions: {}
|
||||||
jobs:
|
jobs:
|
||||||
submit-graph:
|
submit-graph:
|
||||||
|
permissions:
|
||||||
|
contents: write # to submit the dependency graph
|
||||||
|
|
||||||
name: Submit Dependency Graph
|
name: Submit Dependency Graph
|
||||||
runs-on: ubuntu-latest # or windows-latest, or macOS-latest
|
runs-on: ubuntu-latest # or windows-latest, or macOS-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,9 @@ on:
|
||||||
# # 08:00 UTC = 03:00 EST
|
# # 08:00 UTC = 03:00 EST
|
||||||
# - cron: '0 8 * * *'
|
# - cron: '0 8 * * *'
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read # to fetch code (actions/checkout)
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
strategy:
|
strategy:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue