chore: linting updates, fixes (#85)

* chore: linting fixes

* chore(deps): update github workflows

* fix(ci): pr-lint permissions

* fix(ci): add missing UID

* fix(ci): pr-lint permissions

* fix(ci): cr tweak
This commit is contained in:
2025-11-28 16:49:12 +02:00
committed by GitHub
parent a8a78c98e7
commit 35634af17e
10 changed files with 41 additions and 42 deletions

View File

@@ -14,4 +14,3 @@ max_line_length = 120
# Markdown files # Markdown files
[*.md] [*.md]
max_line_length = 200 max_line_length = 200

View File

@@ -12,6 +12,7 @@ A clear and concise description of what the bug is.
**To Reproduce** **To Reproduce**
Steps to reproduce the behavior: Steps to reproduce the behavior:
1. Go to '...' 1. Go to '...'
2. Click on '....' 2. Click on '....'
3. Scroll down to '....' 3. Scroll down to '....'
@@ -24,15 +25,17 @@ A clear and concise description of what you expected to happen.
If applicable, add screenshots to help explain your problem. If applicable, add screenshots to help explain your problem.
**Desktop (please complete the following information):** **Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari] - OS: [e.g. iOS]
- Version [e.g. 22] - Browser [e.g. chrome, safari]
- Version [e.g. 22]
**Smartphone (please complete the following information):** **Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1] - Device: [e.g. iPhone6]
- Browser [e.g. stock browser, safari] - OS: [e.g. iOS8.1]
- Version [e.g. 22] - Browser [e.g. stock browser, safari]
- Version [e.g. 22]
**Additional context** **Additional context**
Add any other context about the problem here. Add any other context about the problem here.

View File

@@ -1,6 +1,6 @@
{ {
"$schema": "https://docs.renovatebot.com/renovate-schema.json", "$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [ "extends": [
"github>ivuorinen/renovate-config" "github>ivuorinen/renovate-config"
] ]
} }

View File

@@ -1,14 +1,14 @@
--- ---
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json # yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: 'CodeQL' name: "CodeQL"
on: on:
push: push:
branches: ['main'] branches: ["main"]
pull_request: pull_request:
branches: ['main'] branches: ["main"]
schedule: schedule:
- cron: '30 1 * * 0' # Run at 1:30 AM UTC every Sunday - cron: "30 1 * * 0" # Run at 1:30 AM UTC every Sunday
merge_group: merge_group:
permissions: permissions:
@@ -43,4 +43,4 @@ jobs:
- name: Perform CodeQL Analysis - name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@fdbfb4d2750291e159f0156def62b853c2798ca2 # v4.31.5 uses: github/codeql-action/analyze@fdbfb4d2750291e159f0156def62b853c2798ca2 # v4.31.5
with: with:
category: '/language:${{matrix.language}}' category: "/language:${{matrix.language}}"

View File

@@ -20,11 +20,24 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
timeout-minutes: 15 timeout-minutes: 15
permissions: permissions:
statuses: write contents: write
contents: read issues: write
packages: read packages: read
pull-requests: write
statuses: write
steps: steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
persist-credentials: true
- name: Run PR Lint - name: Run PR Lint
# https://github.com/ivuorinen/actions # https://github.com/ivuorinen/actions
uses: ivuorinen/actions/pr-lint@e58465e5d305c3dcdd6e3b788e2b683dc706ea9e # v25.11.25 uses: ivuorinen/actions/pr-lint@e58465e5d305c3dcdd6e3b788e2b683dc706ea9e # v25.11.25
with:
username: 'github-actions'
email: 'github-actions@github.com'
token: ${{ secrets.GITHUB_TOKEN }}

View File

@@ -4,26 +4,20 @@ repos:
rev: v6.0.0 rev: v6.0.0
hooks: hooks:
- id: check-added-large-files - id: check-added-large-files
- id: check-ast
- id: check-builtin-literals
- id: check-case-conflict - id: check-case-conflict
- id: check-executables-have-shebangs - id: check-executables-have-shebangs
- id: check-json - id: check-json
- id: check-merge-conflict - id: check-merge-conflict
- id: check-shebang-scripts-are-executable - id: check-shebang-scripts-are-executable
- id: check-symlinks - id: check-symlinks
- id: check-toml
- id: check-xml
- id: check-yaml - id: check-yaml
args: [--allow-multiple-documents] args: [--allow-multiple-documents]
- id: debug-statements
- id: detect-private-key - id: detect-private-key
- id: end-of-file-fixer - id: end-of-file-fixer
- id: mixed-line-ending - id: mixed-line-ending
args: [--fix=auto] args: [--fix=auto]
- id: pretty-format-json - id: pretty-format-json
args: [--autofix, --no-sort-keys] args: [--autofix, --no-sort-keys]
- id: requirements-txt-fixer
- id: trailing-whitespace - id: trailing-whitespace
args: [--markdown-linebreak-ext=md] args: [--markdown-linebreak-ext=md]
@@ -32,7 +26,7 @@ repos:
rev: v1.5.0 rev: v1.5.0
hooks: hooks:
- id: detect-secrets - id: detect-secrets
args: ['--baseline', '.secrets.baseline'] args: ["--baseline", ".secrets.baseline"]
- repo: https://github.com/gitleaks/gitleaks - repo: https://github.com/gitleaks/gitleaks
rev: v8.30.0 rev: v8.30.0
@@ -64,27 +58,21 @@ repos:
rev: v3.12.0-2 rev: v3.12.0-2
hooks: hooks:
- id: shfmt - id: shfmt
args: [-w, -s, -i, '2'] args: [-w, -s, -i, "2"]
# Shell linting # Shell linting
- repo: https://github.com/koalaman/shellcheck-precommit - repo: https://github.com/koalaman/shellcheck-precommit
rev: v0.11.0 rev: v0.11.0
hooks: hooks:
- id: shellcheck - id: shellcheck
args: ['--severity=warning'] args: ["--severity=warning"]
# GitHub Actions linting # GitHub Actions linting
- repo: https://github.com/rhysd/actionlint - repo: https://github.com/rhysd/actionlint
rev: v1.7.9 rev: v1.7.9
hooks: hooks:
- id: actionlint - id: actionlint
args: ['-shellcheck='] args: ["-shellcheck="]
# Renovate config validation
- repo: https://github.com/renovatebot/pre-commit-hooks
rev: 42.21.3
hooks:
- id: renovate-config-validator
# Security scanning # Security scanning
- repo: https://github.com/bridgecrewio/checkov.git - repo: https://github.com/bridgecrewio/checkov.git
@@ -92,6 +80,6 @@ repos:
hooks: hooks:
- id: checkov - id: checkov
args: args:
- '--quiet' - "--quiet"
- '--framework' - "--framework"
- 'github_actions,yaml' - "github_actions,yaml"

View File

@@ -120,4 +120,3 @@ complete -c phpenv -f \
# Complete help options # Complete help options
complete -c phpenv -f -s h -l help -d "Show help" complete -c phpenv -f -s h -l help -d "Show help"

View File

@@ -35,4 +35,3 @@ if test -n "$PHPENV_GLOBAL_VERSION"; and not set -q PHPENV_INITIALIZED
end end
set -g PHPENV_INITIALIZED true set -g PHPENV_INITIALIZED true
end end

View File

@@ -82,4 +82,3 @@ function __phpenv_uninstall --on-event phpenv_uninstall
echo "phpenv.fish configuration removed." echo "phpenv.fish configuration removed."
echo "Note: Installed PHP versions are preserved." echo "Note: Installed PHP versions are preserved."
end end

View File

@@ -1096,4 +1096,3 @@ function __phpenv_validate_extensions -a phpenv_extensions_string
return 1 return 1
end end
end end