fix(ci): permissions

This commit is contained in:
Ismo Vuorinen
2025-01-29 11:27:39 +02:00
parent 53c1f05717
commit 91ab1fcaf2
5 changed files with 26 additions and 7 deletions

View File

@@ -1,4 +1,5 @@
--- ---
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: PR Lint name: PR Lint
on: on:
@@ -11,3 +12,8 @@ on:
jobs: jobs:
SuperLinter: SuperLinter:
uses: ivuorinen/.github/.github/workflows/pr-lint.yml@main uses: ivuorinen/.github/.github/workflows/pr-lint.yml@main
permissions:
contents: read
packages: read
statuses: write

View File

@@ -1,10 +1,15 @@
--- ---
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: Release Drafter name: Release Drafter
# yamllint disable-line rule:truthy
on: on:
workflow_call: workflow_call:
jobs: jobs:
Draft: Draft:
uses: ivuorinen/.github/.github/workflows/sync-labels.yml@main uses: ivuorinen/.github/.github/workflows/sync-labels.yml@main
permissions:
contents: write
statuses: write
packages: read

View File

@@ -1,7 +1,7 @@
--- ---
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: Stale name: Stale
# yamllint disable-line rule:truthy
on: on:
schedule: schedule:
- cron: '0 8 * * *' - cron: '0 8 * * *'
@@ -10,8 +10,11 @@ on:
jobs: jobs:
stale: stale:
uses: ivuorinen/.github/.github/workflows/stale.yml@main
permissions: permissions:
contents: write contents: write # only for delete-branch option
issues: write issues: write
pull-requests: write pull-requests: write
uses: ivuorinen/.github/.github/workflows/stale.yml@main statuses: read
packages: read

View File

@@ -1,3 +1,5 @@
---
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
# Simple workflow for deploying static content to GitHub Pages # Simple workflow for deploying static content to GitHub Pages
name: Deploy static content to Pages name: Deploy static content to Pages

View File

@@ -1,4 +1,5 @@
--- ---
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: Sync labels name: Sync labels
# yamllint disable-line rule:truthy # yamllint disable-line rule:truthy
@@ -13,9 +14,11 @@ on:
workflow_call: workflow_call:
workflow_dispatch: workflow_dispatch:
permissions:
issues: write
jobs: jobs:
SyncLabels: SyncLabels:
uses: ivuorinen/.github/.github/workflows/sync-labels.yml@main uses: ivuorinen/.github/.github/workflows/sync-labels.yml@main
permissions:
issues: write
contents: read
statuses: read