Add community triage infrastructure: CI lint, stale bot, CODEOWNERS, docs #1
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
| name: Lint | |
| on: | |
| pull_request: | |
| branches: [main] | |
| push: | |
| branches: [main] | |
| permissions: | |
| contents: read | |
| jobs: | |
| hadolint: | |
| name: Hadolint (Dockerfile) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: hadolint/hadolint-action@v3.1.0 | |
| with: | |
| dockerfile: Dockerfile | |
| failure-threshold: error | |
| ignore: DL3008,DL3009,DL3015,DL3041 | |
| shellcheck: | |
| name: ShellCheck (*.sh) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Run shellcheck | |
| uses: ludeeus/action-shellcheck@2.0.0 | |
| env: | |
| SHELLCHECK_OPTS: -e SC2046 -e SC2086 -S warning | |
| actionlint: | |
| name: actionlint (workflows) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Run actionlint | |
| shell: bash | |
| env: | |
| ACTIONLINT_VERSION: '1.7.7' | |
| ACTIONLINT_SHA256: '023070a287cd8cccd71515fedc843f1985bf96c436b7effaecce67290e7e0757' | |
| run: | | |
| curl -fsSL -o actionlint.tgz \ | |
| "https://github.com/rhysd/actionlint/releases/download/v${ACTIONLINT_VERSION}/actionlint_${ACTIONLINT_VERSION}_linux_amd64.tar.gz" | |
| echo "${ACTIONLINT_SHA256} actionlint.tgz" | sha256sum -c - | |
| tar -xzf actionlint.tgz actionlint | |
| ./actionlint -color | |
| yamllint: | |
| name: yamllint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install yamllint | |
| run: pip install --user yamllint==1.35.1 | |
| - name: Lint YAML files (non-blocking) | |
| run: | | |
| yamllint -d "{extends: relaxed, rules: {line-length: disable, document-start: disable, truthy: {check-keys: false}}}" \ | |
| .github azure-pipelines.yml devops || true |