PR for upgrading quality gate test DB #2
This file contains 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: PR for upgrading quality gate test DB | |
on: | |
schedule: | |
- cron: "0 16 1 * *" # first day of each month @ 11 AM EST | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
update-test-db-url: | |
runs-on: ubuntu-latest | |
if: github.repository == 'anchore/grype' # only run for main repo | |
steps: | |
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 #v4.2.0 | |
- name: "Update quality DB" | |
run: | | |
make update-quality-gate-db | |
- uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a #v2.1.0 | |
id: generate-token | |
with: | |
app_id: ${{ secrets.TOKEN_APP_ID }} | |
private_key: ${{ secrets.TOKEN_APP_PRIVATE_KEY }} | |
- uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f #v7.0.5 | |
with: | |
signoff: true | |
delete-branch: true | |
branch: auto/update-quality-test-db | |
labels: test, changelog-ignore | |
commit-message: 'test: update quality gate db to latest version' | |
title: 'test: update quality gate db to latest version' | |
body: | | |
This is an auto-generated pull request to update the quality gate db to latest version | |
token: ${{ steps.generate-token.outputs.token }} |