Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update osv to store the directory #53

Merged
merged 1 commit into from Mar 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 7 additions & 2 deletions build-and-publish-osv/action.yaml
Expand Up @@ -60,17 +60,22 @@ runs:
gcloud --quiet alpha storage ls 1> /dev/null
shell: bash

- name: 'create temp OSV directory'
run: |
mkdir -p osv
shell: bash

- name: Build the security database
uses: docker://ghcr.io/wolfi-dev/sdk:latest@sha256:10ee9c5120c2b7e6ac80f82f7883aeb92267df4b265e3a9242cb7a6a94835fa5
with:
entrypoint: wolfictl
args: advisory export --format osv -o osv.yaml ${{ inputs.wolfictl_args }}
args: advisory export --format osv -o osv ${{ inputs.wolfictl_args }}

- name: 'Upload the security database to a bucket'
run: |
# Don't cache the security.json.
gcloud --quiet alpha storage cp \
${{ inputs.enable_acl_public_read }} --cache-control=no-store \
./osv.yaml \
'./osv/**' \
gs://${{ inputs.gcs_apk_bucket_name }}/${{ inputs.gcs_apk_directory_name}}/
shell: bash