fix(ci): bump a2ml/k9-validate-action pins to canonical (standards#85) #248
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
| # SPDX-License-Identifier: PMPL-1.0-or-later | |
| name: ReScript/Deno CI | |
| on: [push, pull_request] | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
| - uses: denoland/setup-deno@667a34cdef165d8d2b2e98dde39547c9daac7282 # v2.0.4 | |
| with: | |
| deno-version: v1.x | |
| - name: Deno lint | |
| run: deno task lint | |
| - name: Deno fmt check | |
| run: deno task fmt:check | |
| - name: Deno test | |
| run: deno test --allow-all --coverage=coverage | |
| - name: ReScript build | |
| run: | | |
| if [ -f "rescript.json" ] || [ -f "bsconfig.json" ]; then | |
| npm install | |
| npx rescript | |
| fi | |
| - name: Type check | |
| run: deno check **/*.ts || true | |
| security: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
| - uses: denoland/setup-deno@667a34cdef165d8d2b2e98dde39547c9daac7282 # v2.0.4 | |
| - name: Check permissions | |
| run: | | |
| # Audit for dangerous permissions | |
| grep -rE "allow-run|allow-write|allow-env" . || echo "No dangerous permissions" |