Merge pull request #6439 from mempool/knorrium/workflow_permissions

Set explicit read permissions to all workflows
This commit is contained in:
mononaut 2026-04-02 16:45:37 +09:00 committed by GitHub
commit cfcf2441b0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 27 additions and 2 deletions

View file

@ -7,6 +7,9 @@ on:
branches:
- master
permissions:
contents: read
jobs:
backend-integration:
if: "(github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'ops') && !contains(github.head_ref, 'ops/')) || github.event_name == 'push'"

View file

@ -7,6 +7,9 @@ on:
branches:
- master
permissions:
contents: read
jobs:
backend:
if: "(github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'ops') && !contains(github.head_ref, 'ops/')) || github.event_name == 'push'"

View file

@ -17,7 +17,10 @@ on:
description: 'Liquid Hostname'
required: true
default: 'liquid.network'
type: string
type: string
permissions:
contents: read
jobs:
cache:

View file

@ -2,6 +2,9 @@ name: 'Check if servers are in sync'
on: [workflow_dispatch]
permissions:
contents: read
jobs:
print-backend-sha:
runs-on: mempool-ci

View file

@ -2,6 +2,9 @@ name: 'Print backend hashes'
on: [workflow_dispatch]
permissions:
contents: read
jobs:
print-backend-sha:
runs-on: mempool-ci

View file

@ -7,7 +7,11 @@ on:
description: 'Image Version'
required: false
default: 'latest'
type: string
type: string
permissions:
contents: read
jobs:
print-images-sha:
runs-on: mempool-ci

View file

@ -6,6 +6,9 @@ on:
issues:
types: [opened]
permissions:
contents: read
jobs:
project-automation:
uses: mempool/.github/.github/workflows/project-board-automation.yml@master

View file

@ -7,6 +7,9 @@ on:
branches:
- master
permissions:
contents: read
jobs:
backend:
if: "(github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'ops') && !contains(github.head_ref, 'ops/')) || github.event_name == 'push'"