Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
zoom-in

GitHub Action

Bicep Linter

v1

Bicep Linter

zoom-in

Bicep Linter

Runs Bicep build on the files, takes any linting errors and surfaces them in GitHub

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Bicep Linter

uses: synergy-au/bicep-lint-action@v1

Learn more about this action in synergy-au/bicep-lint-action

Choose a version

Bicep Lint Action

GitHub Action to lint Bicep. This will show the linting messages in both the pull requests and the actions workflow runs. You are also able to set your own Bicep linter configuration which this action will respect.

Input Configuration Options

analyse-all-files

  • Description: Used to determine whether you just want to analyse the files changed or the whole repository. When set to false on a pull request event, it will compare between the current and target branch. When set to false on a push event, it will compare the changes between two commits.
  • Required: false
  • Default: 'false'

Example Workflow File

name: Linter
on:
  pull_request:
  workflow_dispatch:

jobs:
  bicep-linter:
    name: Bicep
    runs-on: ubuntu-latest
    steps:
    - name: Checkout Repository
      uses: actions/checkout@v3
      with:
        # Incremental diffs require fetch depth to be at 0 to grab the target branch
        fetch-depth: '0'
    - name: Run Bicep Linter
      uses: synergy-au/bicep-lint-action@v1
      with:
        analyse-all-files: 'true'