Reconcile Gemini CLI and mcp-remote legacy advisory ranges #1081
Workflow file for this run
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: Validate | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| merge_group: | |
| defaults: | |
| run: | |
| shell: bash -xeuo pipefail {0} | |
| concurrency: | |
| group: "validate-${{ github.ref }}" | |
| cancel-in-progress: ${{ github.event_name == 'pull_request' }} | |
| permissions: {} | |
| jobs: | |
| schema: | |
| name: Validate advisory schema | |
| if: github.repository_owner == 'Homebrew' | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - name: Set up Homebrew | |
| id: set-up-homebrew | |
| uses: Homebrew/actions/setup-homebrew@f8d4222eb633e65c2a0157383cf80861fc7fae7f # 2026.09.07.1 | |
| with: | |
| core: false | |
| cask: false | |
| - name: Install check-jsonschema | |
| uses: Homebrew/actions/cache-homebrew-prefix@f8d4222eb633e65c2a0157383cf80861fc7fae7f # 2026.09.07.1 | |
| with: | |
| install: check-jsonschema | |
| workflow-key: validate-schema | |
| - name: Fetch OSV schema | |
| # OSV schema v1.9.0, which includes the Homebrew ecosystem and BREW- id registrations. | |
| run: >- | |
| curl --fail --location --retry 3 --show-error --silent | |
| --output "${RUNNER_TEMP}/osv-schema.json" | |
| https://raw.githubusercontent.com/ossf/osv-schema/f3f826310aeca8e324baabd195632f2229952abe/validation/schema.json | |
| - name: Validate advisories against OSV schema | |
| run: | | |
| if ! find advisories -type f -name '*.json' -print -quit | grep -q .; then | |
| echo "No advisory files found." | |
| exit 1 | |
| fi | |
| find advisories -type f -name '*.json' -print0 | | |
| xargs -0 -r -n 500 check-jsonschema --schemafile "${RUNNER_TEMP}/osv-schema.json" | |
| test: | |
| name: Test Ruby code | |
| if: github.repository_owner == 'Homebrew' | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - name: Set up Homebrew | |
| uses: Homebrew/actions/setup-homebrew@f8d4222eb633e65c2a0157383cf80861fc7fae7f # 2026.09.07.1 | |
| - name: Set up Ruby | |
| uses: Homebrew/actions/setup-ruby@f8d4222eb633e65c2a0157383cf80861fc7fae7f # 2026.09.07.1 | |
| with: | |
| bundler-cache: true | |
| portable-ruby: true | |
| - name: Run tests and style checks | |
| run: bundle exec rake |