Set explicit read permissions to all workflows

This commit is contained in:
Felipe Knorr Kuhn 2026-04-02 15:05:02 +09:00
parent ee5c712cc8
commit 4744ca3231
No known key found for this signature in database
GPG key ID: 79619B52BB097C1A
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'"