fix(ci): top level permissions, env hardening

This commit is contained in:
Ismo Vuorinen
2025-01-28 14:51:13 +02:00
parent cdcec7d39d
commit 4855c8948b
12 changed files with 94 additions and 3 deletions

View File

@@ -3,11 +3,19 @@
# Open a Pull Request if any images can be compressed.
name: Compress Images on Demand
env:
ACTIONS_ALLOW_UNSECURE_COMMAND=false
on:
workflow_dispatch:
schedule:
- cron: "00 23 * * 0"
permissions:
contents: write
statuses: write
pull-requests: write
jobs:
CompressOnDemandOrSchedule:
name: calibreapp/image-actions