Merge pull request #6793 from sashashura/patch-1

GitHub Workflows security hardening
main
Elbert Alias 2 years ago committed by GitHub
commit db99ccddae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -3,8 +3,13 @@ on:
schedule: schedule:
- cron: "30 0 * * *" - cron: "30 0 * * *"
permissions: {}
jobs: jobs:
close-issues: close-issues:
permissions:
issues: write # to close stale issues (actions/stale)
pull-requests: write # to close stale PRs (actions/stale)
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/stale@v3 - uses: actions/stale@v3

@ -2,6 +2,9 @@ name: "submit"
on: on:
workflow_dispatch: workflow_dispatch:
permissions:
contents: read
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest

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