fix(lint): checkov findings

This commit is contained in:
Ismo Vuorinen
2024-06-19 09:59:15 +03:00
parent aae7a09cd5
commit 130718ef87
8 changed files with 43 additions and 8 deletions

View File

@@ -8,6 +8,10 @@ on:
- "composer.json" - "composer.json"
- "composer.lock" - "composer.lock"
permissions:
contents: write
statuses: write
jobs: jobs:
ComposerInstall: ComposerInstall:
runs-on: ubuntu-latest runs-on: ubuntu-latest

View File

@@ -2,10 +2,17 @@
# Compress images on demand (workflow_dispatch), and at 11pm every Sunday (schedule). # Compress images on demand (workflow_dispatch), and at 11pm every Sunday (schedule).
# Open a Pull Request if any images can be compressed. # Open a Pull Request if any images can be compressed.
name: Compress Images on Demand name: Compress Images on Demand
on: on:
workflow_dispatch: workflow_dispatch:
schedule: schedule:
- cron: "00 23 * * 0" - cron: "00 23 * * 0"
permissions:
contents: write
statuses: write
pull-requests: write
jobs: jobs:
CompressOnDemandOrSchedule: CompressOnDemandOrSchedule:
name: calibreapp/image-actions name: calibreapp/image-actions

View File

@@ -7,6 +7,10 @@ on:
pull_request: pull_request:
branches: [main] branches: [main]
permissions:
contents: write
statuses: write
jobs: jobs:
laravel-tests: laravel-tests:
runs-on: ubuntu-latest runs-on: ubuntu-latest

View File

@@ -1,5 +1,6 @@
--- ---
name: Compress Images name: Compress Images
on: on:
pull_request: pull_request:
# Run Image Actions when JPG, JPEG, PNG or WebP files are added or changed. # Run Image Actions when JPG, JPEG, PNG or WebP files are added or changed.
@@ -9,6 +10,12 @@ on:
- "**.jpeg" - "**.jpeg"
- "**.png" - "**.png"
- "**.webp" - "**.webp"
permissions:
contents: write
statuses: write
pull-requests: write
jobs: jobs:
CompressInPR: CompressInPR:
# Only run on Pull Requests within the same repository, and not from forks. # Only run on Pull Requests within the same repository, and not from forks.

View File

@@ -24,6 +24,14 @@ on:
pull_request: pull_request:
branches: [master, main] branches: [master, main]
############################################
# Grant status permission for MULTI_STATUS #
############################################
permissions:
contents: read
packages: read
statuses: write
############### ###############
# Set the Job # # Set the Job #
############### ###############
@@ -34,14 +42,6 @@ jobs:
# Set the agent to run on # Set the agent to run on
runs-on: ubuntu-latest runs-on: ubuntu-latest
############################################
# Grant status permission for MULTI_STATUS #
############################################
permissions:
contents: read
packages: read
statuses: write
################## ##################
# Load all steps # # Load all steps #
################## ##################

View File

@@ -4,6 +4,10 @@ name: Release Drafter
on: on:
workflow_call: workflow_call:
permissions:
contents: write
statuses: write
jobs: jobs:
update_release_draft: update_release_draft:
name: ✏️ Draft release name: ✏️ Draft release

View File

@@ -3,6 +3,11 @@ name: Reviewdog Linters
on: [push] on: [push]
permissions:
contents: read
packages: read
statuses: write
jobs: jobs:
linters: linters:
name: Linters name: Linters

View File

@@ -12,6 +12,10 @@ on:
schedule: schedule:
- cron: "0 0 * * *" # Every day at midnight - cron: "0 0 * * *" # Every day at midnight
permissions:
contents: write
statuses: write
jobs: jobs:
sync-labels: sync-labels:
runs-on: ubuntu-latest runs-on: ubuntu-latest