ci: add action path var #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
workflow_dispatch: | |
push: | |
# Run when commits are pushed to mainline branch (main or master) | |
# Set this to the mainline branch you are using | |
branches: | |
- ci/test-ps-rule | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
# GitHub Actions workflow to deploy to Azure using azd | |
- name: Analyze templates for MI compliance | |
uses: microsoft/ps-rule@v2.9.0 | |
id: run_psrule | |
with: | |
source: '${{ github.action_path }}/.github/.ps-rule/' | |
modules: 'PSRule.Rules.Azure' | |
baseline: 'templateCustom' |