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

add job to export advisories in the OSV format #3243

Merged
merged 1 commit into from Mar 26, 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
43 changes: 43 additions & 0 deletions .github/workflows/build-and-publish-osv.yaml
@@ -0,0 +1,43 @@
name: Build and publish OSV

on:
push:
branches:
- main
workflow_dispatch:

jobs:
build-publish:
name: Build and publish OSV
runs-on: ubuntu-latest
if: github.repository == 'wolfi-dev/advisories'

permissions:
id-token: write
contents: read

steps:
- uses: actions/checkout@v4

- uses: wolfi-dev/actions/build-and-publish-osv@main
with:
workload_identity_provider: "projects/618116202522/locations/global/workloadIdentityPools/prod-shared-e350/providers/prod-shared-gha"
service_account: "prod-images-ci@prod-images-c6e5.iam.gserviceaccount.com"
gcp_project_id: prod-images-c6e5
wolfictl_args: "--ecosystem wolfi --advisories-repo-dir ."
gcs_apk_bucket_name: wolfi-production-registry-destination
gcs_apk_directory_name: os

- name: Post failure notice to Slack
uses: rtCamp/action-slack-notify@4e5fb42d249be6a45a298f3c9543b111b02f7907 # ratchet:rtCamp/action-slack-notify@v2.3.0
if: ${{ failure() }}
env:
SLACK_ICON: http://github.com/chainguard-dev.png?size=48
SLACK_USERNAME: guardian
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_CHANNEL: 'eng-squad-lifecycle-alerts'
SLACK_COLOR: '#8E1600'
MSG_MINIMAL: 'true'
SLACK_TITLE: Build/Publish YAML for ${{ github.repository }} failed!
SLACK_MESSAGE: |
For detailed logs: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}