mirror of
https://github.com/ivuorinen/sysvinit-service-generator.git
synced 2026-02-12 20:51:19 +00:00
chore(ci): update workflows (#125)
This commit is contained in:
25
.github/workflows/pr-lint.yml
vendored
25
.github/workflows/pr-lint.yml
vendored
@@ -1,25 +1,34 @@
|
||||
---
|
||||
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
|
||||
name: Lint Code Base
|
||||
name: PR Lint
|
||||
|
||||
env:
|
||||
MAIN_BRANCH: main
|
||||
on:
|
||||
push:
|
||||
branches: [master, main]
|
||||
pull_request:
|
||||
branches: [master, main]
|
||||
|
||||
permissions: read-all
|
||||
env: # Comment env block if you don't want to apply fixes
|
||||
# Apply linter fixes configuration
|
||||
APPLY_FIXES: all
|
||||
APPLY_FIXES_EVENT: all
|
||||
APPLY_FIXES_MODE: commit
|
||||
SARIF_REPORTER: true
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.ref }}-${{ github.workflow }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
permissions:
|
||||
statuses: write
|
||||
contents: read
|
||||
contents: write
|
||||
issues: write
|
||||
packages: read
|
||||
pull-requests: write
|
||||
security-events: write
|
||||
statuses: write
|
||||
|
||||
steps:
|
||||
# https://github.com/ivuorinen/actions
|
||||
|
||||
Reference in New Issue
Block a user