2023-10-25 13:08:43 +00:00
|
|
|
name: PR for latest versions of tools
|
2022-08-22 15:28:24 +00:00
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
- cron: "0 8 * * *" # 3 AM EST
|
|
|
|
|
|
|
|
workflow_dispatch:
|
|
|
|
|
2023-09-15 18:18:42 +00:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2022-08-22 15:28:24 +00:00
|
|
|
jobs:
|
|
|
|
update-bootstrap-tools:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
if: github.repository == 'anchore/syft' # only run for main repo
|
|
|
|
steps:
|
2024-06-13 16:28:04 +00:00
|
|
|
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #v4.1.7
|
2022-08-22 15:28:24 +00:00
|
|
|
|
2023-10-25 13:08:43 +00:00
|
|
|
- name: Bootstrap environment
|
|
|
|
uses: ./.github/actions/bootstrap
|
2022-08-22 15:28:24 +00:00
|
|
|
with:
|
2023-10-25 13:08:43 +00:00
|
|
|
bootstrap-apt-packages: ""
|
|
|
|
compute-fingerprints: "false"
|
|
|
|
go-dependencies: false
|
2022-08-22 15:28:24 +00:00
|
|
|
|
2023-10-25 13:08:43 +00:00
|
|
|
- name: "Update tool versions"
|
|
|
|
id: latest-versions
|
|
|
|
run: |
|
|
|
|
make update-tools
|
|
|
|
make list-tools
|
2022-08-22 15:28:24 +00:00
|
|
|
|
2023-10-25 13:08:43 +00:00
|
|
|
export NO_COLOR=1
|
|
|
|
delimiter="$(openssl rand -hex 8)"
|
2022-08-22 15:28:24 +00:00
|
|
|
|
2023-10-25 13:08:43 +00:00
|
|
|
{
|
|
|
|
echo "status<<${delimiter}"
|
|
|
|
make list-tool-updates
|
|
|
|
echo "${delimiter}"
|
|
|
|
} >> $GITHUB_OUTPUT
|
|
|
|
|
|
|
|
{
|
|
|
|
echo "### Tool version status"
|
|
|
|
echo "\`\`\`"
|
|
|
|
make list-tool-updates
|
|
|
|
echo "\`\`\`"
|
|
|
|
} >> $GITHUB_STEP_SUMMARY
|
2022-08-22 15:28:24 +00:00
|
|
|
|
2023-09-20 14:12:13 +00:00
|
|
|
- uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a #v2.1.0
|
2022-08-22 15:28:24 +00:00
|
|
|
id: generate-token
|
|
|
|
with:
|
|
|
|
app_id: ${{ secrets.TOKEN_APP_ID }}
|
|
|
|
private_key: ${{ secrets.TOKEN_APP_PRIVATE_KEY }}
|
|
|
|
|
2024-06-20 15:12:12 +00:00
|
|
|
- uses: peter-evans/create-pull-request@c5a7806660adbe173f04e3e038b0ccdcd758773c #v6.1.0
|
2022-08-22 15:28:24 +00:00
|
|
|
with:
|
|
|
|
signoff: true
|
|
|
|
delete-branch: true
|
2023-10-25 13:08:43 +00:00
|
|
|
branch: auto/latest-tools
|
2022-08-22 15:28:24 +00:00
|
|
|
labels: dependencies
|
2023-10-25 13:08:43 +00:00
|
|
|
commit-message: 'chore(deps): update tools to latest versions'
|
|
|
|
title: 'chore(deps): update tools to latest versions'
|
2022-08-22 15:28:24 +00:00
|
|
|
body: |
|
2023-10-25 13:08:43 +00:00
|
|
|
```
|
|
|
|
${{ steps.latest-versions.outputs.status }}
|
|
|
|
```
|
|
|
|
This is an auto-generated pull request to update all of the tools to the latest versions.
|
2023-01-12 21:21:01 +00:00
|
|
|
token: ${{ steps.generate-token.outputs.token }}
|