chore(workflow): update workflow settings

This commit is contained in:
Ismo Vuorinen
2024-10-09 11:30:48 +03:00
parent 6bf2179c06
commit a47b65d961
5 changed files with 19 additions and 0 deletions

View File

@@ -13,6 +13,8 @@ jobs:
CompressOnDemandOrSchedule:
name: calibreapp/image-actions
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout Repo
uses: actions/checkout@v4

View File

@@ -17,9 +17,13 @@ permissions: read-all
jobs:
dependency-review:
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- name: 'Checkout Repository'
uses: actions/checkout@v4
- name: 'Dependency Review'
uses: actions/dependency-review-action@v4
with:
comment-summary-in-pr: always

View File

@@ -17,6 +17,7 @@ jobs:
# Only run on Pull Requests within the same repository, and not from forks.
if: github.event.pull_request.head.repo.full_name == github.repository
name: calibreapp/image-actions
permissions: write-all
runs-on: ubuntu-latest
steps:
- name: Checkout Repo

View File

@@ -13,6 +13,8 @@ permissions: read-all
jobs:
build:
permissions:
statuses: write
# https://github.com/ivuorinen/ivuorinen/.github/workflows/pr-lint.yml
uses: ivuorinen/ivuorinen/.github/workflows/pr-lint.yml@main

View File

@@ -4,12 +4,22 @@ name: Release Drafter
# yamllint disable-line rule:truthy
on:
workflow_call:
# pull_request event is required only for autolabeler
pull_request:
# Only following types are handled by the action, but one can default to all as well
types: [opened, reopened, synchronize]
permissions: read-all
jobs:
update_release_draft:
name: ✏️ Draft release
permissions:
# write permission is required to create a github release
contents: write
# write permission is required for autolabeler
# otherwise, read permission is required at least
pull-requests: write
runs-on: ubuntu-latest
steps:
- name: 🚀 Run Release Drafter