live-validator-advisory #12
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: live-validator-advisory | |
| on: | |
| schedule: | |
| - cron: "30 4 * * 1" | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: live-validator-advisory-${{ github.ref }} | |
| cancel-in-progress: false | |
| jobs: | |
| advisory: | |
| name: live validator advisory artifact | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v6 | |
| - uses: pnpm/action-setup@8912a9102ac27614460f54aedde9e1e7f9aec20d # v6 | |
| with: | |
| version: 9.12.0 | |
| - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6 | |
| with: | |
| node-version: 20 | |
| cache: pnpm | |
| - run: pnpm install --frozen-lockfile | |
| - run: pnpm --filter @hulumi/drift build | |
| - name: Run live validator advisory fixture | |
| run: | | |
| mkdir -p .hulumi-artifacts/live-validator | |
| node packages/drift/dist/cli.js validate live \ | |
| --config docs/cookbooks/live-validator.example.json \ | |
| --format json,markdown,sarif \ | |
| --out-dir .hulumi-artifacts/live-validator | |
| - name: Upload live validator advisory artifact | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7 | |
| with: | |
| name: live-validator-advisory | |
| path: .hulumi-artifacts/live-validator/ | |
| if-no-files-found: error |