mirror of
https://github.com/ivuorinen/base-configs-stylelint.git
synced 2026-02-28 12:53:41 +00:00
Replace overly broad top-level permissions (read-all) with empty defaults and declare minimal job-level permissions. Switch publish workflow from secrets.PAT to secrets.GITHUB_TOKEN so semantic-release can comment on PRs and issues.
31 lines
649 B
YAML
31 lines
649 B
YAML
---
|
|
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
|
|
name: Lint Code Base
|
|
|
|
on:
|
|
push:
|
|
branches: [master, main]
|
|
pull_request:
|
|
branches: [master, main]
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
permissions: {}
|
|
|
|
jobs:
|
|
Linter:
|
|
name: PR Lint
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 15
|
|
permissions:
|
|
statuses: write
|
|
contents: read
|
|
packages: read
|
|
|
|
steps:
|
|
- name: Run PR Lint
|
|
# https://github.com/ivuorinen/actions
|
|
uses: ivuorinen/actions/pr-lint@8faacf8a1cae049c1471708dcb408a167e91afaf # v2026.02.24
|