Merge pull request #7023 from sashashura/patch-1

GitHub Workflows security hardening
This commit is contained in:
eugene yokota 2022-10-02 04:42:01 -04:00 committed by GitHub
commit 87bbdd9f9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 0 deletions

View File

@ -3,6 +3,9 @@ on:
pull_request:
push:
permissions:
contents: read # to fetch code (actions/checkout)
jobs:
test:
strategy:

View File

@ -3,8 +3,12 @@ name: Submit Dependency Graph
on:
push:
branches: [1.7.x] # default branch of the project
permissions: {}
jobs:
submit-graph:
permissions:
contents: write # to submit the dependency graph
name: Submit Dependency Graph
runs-on: ubuntu-latest # or windows-latest, or macOS-latest
steps:

View File

@ -5,6 +5,9 @@ on:
# # 08:00 UTC = 03:00 EST
# - cron: '0 8 * * *'
permissions:
contents: read # to fetch code (actions/checkout)
jobs:
deploy:
strategy: