forked from anchore/grype
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (32 loc) · 1.25 KB
/
update-quality-gate-db.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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 }}