Skip to content

Latest commit

 

History

History
61 lines (47 loc) · 2.2 KB

linter.md

File metadata and controls

61 lines (47 loc) · 2.2 KB

GitHub Reusable Workflow: Linter

Reusable workflow that performs linting on the codebase. Mainly using Super-Linter, with some opinionated defaults.

name: "Linter"

on:
  push:
    branches: [main]
    tags: ["*"]

  pull_request:
    branches: [main]

permissions:
  contents: read
  statuses: write

jobs:
  main:
    uses: hoverkraft-tech/ci-github-common/.github/workflows/[email protected]
    secrets:
      # Token for marking the status of linter run in the Checks section.
      # See https://github.com/super-linter/super-linter#how-to-use
      # Default GITHUB_TOKEN
      github-token: ""
Secret Description Default Required
runs-on Json array of runner(s) to use. See https://docs.github.com/en/actions/using-jobs/choosing-the-runner-for-a-job ["ubuntu-latest"] false
github-token Token for marking the status of linter run in the Checks section. See https://github.com/super-linter/super-linter#how-to-use GITHUB_TOKEN false