GitHub Workflows security hardening (#2511)

Signed-off-by: Alex <aleksandrosansan@gmail.com>
This commit is contained in:
Alex 2022-11-10 03:46:55 +02:00 committed by GitHub
parent ed1083ec27
commit 8dd46e3915
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 16 additions and 0 deletions

View file

@ -1,5 +1,9 @@
name: macos_build name: macos_build
on: [pull_request, push] on: [pull_request, push]
permissions:
contents: read # to fetch code (actions/checkout)
jobs: jobs:
macos_build: macos_build:
strategy: strategy:

View file

@ -9,8 +9,12 @@ on:
# Schedule for ten minutes after the hour, every hour # Schedule for ten minutes after the hour, every hour
- cron: '10 * * * *' - cron: '10 * * * *'
permissions: {}
jobs: jobs:
noResponse: noResponse:
permissions:
issues: write # to update issues (lee-dohm/no-response)
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: lee-dohm/no-response@v0.5.0 - uses: lee-dohm/no-response@v0.5.0

View file

@ -1,5 +1,9 @@
name: pyenv_tests name: pyenv_tests
on: [pull_request, push] on: [pull_request, push]
permissions:
contents: read # to fetch code (actions/checkout)
jobs: jobs:
pyenv_tests: pyenv_tests:
strategy: strategy:

View file

@ -1,5 +1,9 @@
name: ubuntu_build name: ubuntu_build
on: [pull_request, push] on: [pull_request, push]
permissions:
contents: read # to fetch code (actions/checkout)
jobs: jobs:
ubuntu_build: ubuntu_build:
strategy: strategy: