Harden repository ownership and CI #5
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: CI | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| jobs: | |
| validate: | |
| name: validate | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "22" | |
| - name: Validate repository | |
| run: scripts/validate-repo.sh | |
| - name: Install Cortex Code CLI | |
| run: | | |
| curl -LsS https://ai.snowflake.com/static/cc-scripts/install.sh | sh | |
| echo "$HOME/.local/bin" >> "$GITHUB_PATH" | |
| - name: Validate Cortex plugin | |
| run: cortex plugin validate . | |
| - name: Lint Markdown | |
| run: npx --yes markdownlint-cli2 "**/*.md" |