GitHub Workflows security hardening (#1711)

* build: harden docker.yml permissions

Signed-off-by: Alex <aleksandrosansan@gmail.com>

* build: harden workflow.yml permissions

Signed-off-by: Alex <aleksandrosansan@gmail.com>

Signed-off-by: Alex <aleksandrosansan@gmail.com>
main
Alex 2 years ago committed by GitHub
parent 80c0edc232
commit 02d5cf297b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -7,6 +7,9 @@ on:
workflow_dispatch:
permissions:
contents: read # to fetch code (actions/checkout)
jobs:
push:
if: github.repository == 'rq/rq'

@ -6,6 +6,9 @@ on:
pull_request:
branches: [ master ]
permissions:
contents: read # to fetch code (actions/checkout)
jobs:
build:
name: Python${{ matrix.python-version }}/Redis${{ matrix.redis-version }}/redis-py${{ matrix.redis-py-version }}

Loading…
Cancel
Save