mirror of
https://github.com/ivuorinen/.github.git
synced 2026-02-16 05:48:03 +00:00
fix(lint): checkov findings
This commit is contained in:
4
.github/workflows/composer-install.yml
vendored
4
.github/workflows/composer-install.yml
vendored
@@ -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
|
||||||
|
|||||||
7
.github/workflows/compress-images.yml
vendored
7
.github/workflows/compress-images.yml
vendored
@@ -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
|
||||||
|
|||||||
4
.github/workflows/laravel-phpunit.yml
vendored
4
.github/workflows/laravel-phpunit.yml
vendored
@@ -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
|
||||||
|
|||||||
7
.github/workflows/pr-compress-images.yml
vendored
7
.github/workflows/pr-compress-images.yml
vendored
@@ -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.
|
||||||
|
|||||||
16
.github/workflows/pr-lint.yml
vendored
16
.github/workflows/pr-lint.yml
vendored
@@ -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 #
|
||||||
##################
|
##################
|
||||||
|
|||||||
4
.github/workflows/release-drafter.yml
vendored
4
.github/workflows/release-drafter.yml
vendored
@@ -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
|
||||||
|
|||||||
5
.github/workflows/reviewdog-linters.yml
vendored
5
.github/workflows/reviewdog-linters.yml
vendored
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user