GitHub Workflows security hardening (#4586)

This commit is contained in:
Alex 2022-10-31 03:17:17 +02:00 committed by GitHub
parent 85403a185e
commit 6c1da6d88e
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,10 @@ on:
workflow_dispatch: workflow_dispatch:
schedule: schedule:
- cron: '0 0 * * 0' - cron: '0 0 * * 0'
permissions:
contents: read # to fetch code (actions/checkout)
jobs: jobs:
build: build:
name: Running test name: Running test

View File

@ -5,6 +5,9 @@ on:
branches: branches:
- 'main' - 'main'
permissions:
contents: read # to fetch code (actions/checkout)
jobs: jobs:
build: build:
name: Make and Deploy site name: Make and Deploy site

View File

@ -6,6 +6,9 @@ on:
- 'main' - 'main'
pull_request: pull_request:
permissions:
contents: read # to fetch code (actions/checkout)
jobs: jobs:
build: build:
name: Running test name: Running test