MTA-7036: adding requirements for ISO-42001 #1497
Workflow file for this run
This file contains hidden or 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
| # This is a basic workflow to help you get started with Actions | |
| name: Docs-Linting | |
| on: | |
| pull_request: | |
| paths: | |
| - 'docs/**' | |
| - '.github/workflows/vale.yml' | |
| jobs: | |
| vale: | |
| name: Linting with Vale | |
| runs-on: ubuntu-latest | |
| permissions: | |
| actions: read | |
| checks: write # Changed to write so Reviewdog can create check runs | |
| contents: read | |
| pull-requests: write # Changed to write so Reviewdog can post comments on the PR | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Asciidoctor | |
| run: sudo apt-get install -y asciidoctor | |
| - uses: errata-ai/vale-action@reviewdog | |
| with: | |
| sync: true # <--- ADDED: Dynamically runs 'vale sync' on-the-fly before linting starts | |
| filter_mode: diff_context | |
| vale_flags: "--no-exit --minAlertLevel=error --glob=*.adoc" | |
| reporter: github-pr-review | |
| fail_on_error: true | |
| env: | |
| # Required, set by GitHub actions automatically: | |
| # https://docs.github.com/en/actions/security-guides/automatic-token-authentication#about-the-github_token-secret | |
| GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
| REVIEWDOG_GITHUB_API_TOKEN: ${{secrets.GITHUB_TOKEN}} |