chore(workflows): drop root permissions read-all

This commit is contained in:
Ismo Vuorinen
2024-09-09 11:09:04 +03:00
parent 73939e9d19
commit 48a5219b0d
14 changed files with 8 additions and 25 deletions

1
.envrc Normal file
View File

@@ -0,0 +1 @@
use asdf

View File

@@ -8,8 +8,6 @@ on:
- "composer.json" - "composer.json"
- "composer.lock" - "composer.lock"
permissions: read-all
jobs: jobs:
ComposerInstall: ComposerInstall:
runs-on: ubuntu-latest runs-on: ubuntu-latest

View File

@@ -8,8 +8,6 @@ on:
schedule: schedule:
- cron: "00 23 * * 0" - cron: "00 23 * * 0"
permissions: read-all
jobs: jobs:
CompressOnDemandOrSchedule: CompressOnDemandOrSchedule:
name: calibreapp/image-actions name: calibreapp/image-actions

View File

@@ -12,8 +12,6 @@ name: "Dependency Review"
on: [pull_request] on: [pull_request]
permissions: read-all
jobs: jobs:
dependency-review: dependency-review:
runs-on: ubuntu-latest runs-on: ubuntu-latest

View File

@@ -7,8 +7,6 @@ on:
pull_request: pull_request:
branches: [main] branches: [main]
permissions: read-all
jobs: jobs:
laravel-tests: laravel-tests:
runs-on: ubuntu-latest runs-on: ubuntu-latest

View File

@@ -11,8 +11,6 @@ on:
- "**.png" - "**.png"
- "**.webp" - "**.webp"
permissions: read-all
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,8 +24,6 @@ on:
pull_request: pull_request:
branches: [master, main] branches: [master, main]
permissions: read-all
############### ###############
# Set the Job # # Set the Job #
############### ###############
@@ -62,14 +60,20 @@ jobs:
# Run Linter against code base # # Run Linter against code base #
################################ ################################
- name: Lint Code Base - name: Lint Code Base
uses: github/super-linter@v7 uses: super-linter/super-linter/slim@v7
env: env:
VALIDATE_ALL_CODEBASE: false VALIDATE_ALL_CODEBASE: false
LINTER_RULES_PATH: "${DEFAULT_WORKSPACE}"
FIX_ANSIBLE: true FIX_ANSIBLE: true
FIX_ENV: true FIX_ENV: true
FIX_JSON: true FIX_JSON: true
FIX_JSONC_PRETTIER: true FIX_JSONC_PRETTIER: true
FIX_MARKDOWN: true FIX_MARKDOWN: true
FIX_SHELL_SHFMT: true
FIX_TERRAFORM_FMT: true
FIX_TYPESCRIPT_PRETTIER: true
FIX_VUE_PRETTIER: true
FIX_YAML_PRETTIER: true
# Change to 'master' if your main branch differs # Change to 'master' if your main branch differs
DEFAULT_BRANCH: ${{ env.MAIN_BRANCH }} DEFAULT_BRANCH: ${{ env.MAIN_BRANCH }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@@ -4,8 +4,6 @@ name: Release Drafter
on: on:
workflow_call: workflow_call:
permissions: read-all
jobs: jobs:
update_release_draft: update_release_draft:
name: ✏️ Draft release name: ✏️ Draft release

View File

@@ -7,8 +7,6 @@ on:
schedule: schedule:
- cron: "0 0 1 * *" # 1st of every month at midnight - cron: "0 0 1 * *" # 1st of every month at midnight
permissions: read-all
jobs: jobs:
release: release:
name: Release name: Release

View File

@@ -3,8 +3,6 @@ name: Reviewdog Linters
on: [pull_request] on: [pull_request]
permissions: read-all
jobs: jobs:
linters: linters:
name: Linters name: Linters

View File

@@ -7,8 +7,6 @@ on:
workflow_call: workflow_call:
workflow_dispatch: workflow_dispatch:
permissions: read-all
jobs: jobs:
stale: stale:
name: 🧹 Clean up stale issues and PRs name: 🧹 Clean up stale issues and PRs

View File

@@ -12,8 +12,6 @@ on:
schedule: schedule:
- cron: "0 0 * * *" # Every day at midnight - cron: "0 0 * * *" # Every day at midnight
permissions: read-all
jobs: jobs:
sync-labels: sync-labels:
runs-on: ubuntu-latest runs-on: ubuntu-latest

View File

@@ -13,8 +13,6 @@ on:
workflow_call: workflow_call:
workflow_dispatch: workflow_dispatch:
permissions: read-all
jobs: jobs:
labels: labels:
name: ♻️ Sync labels name: ♻️ Sync labels