name: PR for latest versions of tools on: schedule: - cron: "0 8 * * *" # 3 AM EST workflow_dispatch: permissions: contents: read jobs: update-bootstrap-tools: # Runner definition: workflows/.github/runs-on.yml runs-on: runs-on=${{ github.run_id }}/runner=small if: github.repository == 'anchore/syft' # only run for main repo steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 #v5.0.0 with: persist-credentials: false - name: Bootstrap environment uses: ./.github/actions/bootstrap with: bootstrap-apt-packages: "" go-dependencies: false - name: "Update tool versions" id: latest-versions run: | make update-tools make list-tools export NO_COLOR=1 delimiter="$(openssl rand -hex 8)" { echo "status<<${delimiter}" make list-tool-updates echo "${delimiter}" } >> $GITHUB_OUTPUT { echo "### Tool version status" echo "\`\`\`" make list-tool-updates echo "\`\`\`" } >> $GITHUB_STEP_SUMMARY - uses: actions/create-github-app-token@67018539274d69449ef7c02e8e71183d1719ab42 #v2.1.4 id: generate-token with: app-id: ${{ secrets.TOKEN_APP_ID }} private-key: ${{ secrets.TOKEN_APP_PRIVATE_KEY }} - uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e #v7.0.8 with: signoff: true delete-branch: true branch: auto/latest-tools labels: dependencies commit-message: 'chore(deps): update tools to latest versions' title: 'chore(deps): update tools to latest versions' body: | ``` ${{ steps.latest-versions.outputs.status }} ``` This is an auto-generated pull request to update all of the tools to the latest versions. token: ${{ steps.generate-token.outputs.token }}