For checking wether the api was tempered with, we need separate action, that just checks the code against the currently pulled spec. This introduces two subactions for `npx api`. These are `npx api:generate` and `npx api:pull`.
4 lines
219 B
Bash
4 lines
219 B
Bash
#!/bin/bash
|
|
|
|
# Download the most up-to-date imageBuilder.yaml file and overwrite the existing one
|
|
curl https://raw.githubusercontent.com/osbuild/image-builder/main/internal/v1/api.yaml -o ./api/schema/imageBuilder.yaml
|