feat(autoreview): adopt upstream security hardening #200
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: Review Skills | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| jobs: | |
| verify: | |
| name: Verify repository | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| with: | |
| persist-credentials: false | |
| - name: Set up Node.js | |
| uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 | |
| with: | |
| node-version-file: ".node-version" | |
| package-manager-cache: false | |
| - name: Install verification dependencies | |
| run: npm ci | |
| - name: Run repository verification | |
| env: | |
| TESSL_AUTO_UPDATE_INTERVAL_MINUTES: "0" | |
| run: npm run verify | |
| main-review: | |
| needs: verify | |
| if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: release | |
| env: | |
| TESSL_AUTO_UPDATE_INTERVAL_MINUTES: "0" | |
| TESSL_THRESHOLD: "90" | |
| TESSL_TOKEN: ${{ secrets.TESSL_TOKEN }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| with: | |
| persist-credentials: false | |
| - name: Set up Node.js | |
| uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 | |
| with: | |
| node-version-file: ".node-version" | |
| package-manager-cache: false | |
| - name: Review skills with authenticated Tessl | |
| run: ./scripts/skills/review.sh |