name: PR to update CPE dictionary index on: schedule: - cron: "0 1 * * 1" # every monday at 1 AM workflow_dispatch: env: GO_VERSION: "1.21.x" GO_STABLE_VERSION: true jobs: upgrade-cpe-dictionary-index: runs-on: ubuntu-latest if: github.repository == 'anchore/syft' # only run for main repo steps: - uses: actions/checkout@v4 - uses: actions/setup-go@v4 with: go-version: ${{ env.GO_VERSION }} stable: ${{ env.GO_STABLE_VERSION }} - run: | make generate-cpe-dictionary-index - uses: tibdex/github-app-token@v2 id: generate-token with: app_id: ${{ secrets.TOKEN_APP_ID }} private_key: ${{ secrets.TOKEN_APP_PRIVATE_KEY }} - uses: peter-evans/create-pull-request@v5 with: signoff: true delete-branch: true branch: auto/latest-cpe-dictionary-index labels: dependencies commit-message: "chore(deps): update CPE dictionary index" title: "chore(deps): update CPE dictionary index" body: | Update CPE dictionary index based on the latest available CPE dictionary token: ${{ steps.generate-token.outputs.token }}