Skip to content

Fix GitHub Actions PR checks #81

Fix GitHub Actions PR checks

Fix GitHub Actions PR checks #81

Workflow file for this run

name: PR Checks
on:
push:
branches: [ main ]
workflow_dispatch:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
run-linters:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Shellcheck
run: shellcheck ${{ github.workspace }}/*.sh
- name: Lint IAM policy documents
run: |
set -e
for f in $(find ${{ github.workspace }} -maxdepth 1 \( -name '*.json' -o -name '*.json.template' \))
do
echo "Checking JSON for $f"
jq -reM . $f 1>/dev/null || exit 1
done