fix(ci): tweak workflows

This commit is contained in:
2025-03-24 01:07:34 +02:00
parent 58ffaaacdb
commit 6b6236b303
5 changed files with 28 additions and 32 deletions

View File

@@ -1,18 +1,29 @@
---
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: PR Lint
# yamllint disable-line rule:truthy
on:
push:
branches-ignore: [master, main]
# Remove the line above to run when pushing to master
branches: [master, main]
pull_request:
branches: [master, main]
permissions:
contents: read
packages: read
statuses: write
permissions: read-all
env:
TRIVY_SEVERITY: CRITICAL,HIGH
DISABLE_LINTERS: GO_GOLANGCI_LINT
jobs:
SuperLinter:
uses: ivuorinen/.github/.github/workflows/pr-lint.yml@main
Linter:
name: PR Lint
runs-on: ubuntu-latest
permissions:
contents: write # only for delete-branch option
issues: write
pull-requests: write
statuses: write
steps:
- uses: ivuorinen/actions/pr-lint@eb085adfe2779a1c52bfe1b2d0945b6c4241f54e # 25.3.19