mirror of
https://github.com/anchore/syft
synced 2024-11-10 06:14:16 +00:00
7315f83f9d
* migrate to binny and taskfile Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * update binny to not require github token Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * added support for automatically building snapshots Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * detect source changes for snapshot builds Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * fail workflow explicitly when snapshot cache restoral fails Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * match snapshot restoral paths Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> --------- Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
66 lines
2 KiB
YAML
66 lines
2 KiB
YAML
name: PR for latest versions of tools
|
|
on:
|
|
schedule:
|
|
- cron: "0 8 * * *" # 3 AM EST
|
|
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
update-bootstrap-tools:
|
|
runs-on: ubuntu-latest
|
|
if: github.repository == 'anchore/syft' # only run for main repo
|
|
steps:
|
|
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 #v4.1.1
|
|
|
|
- name: Bootstrap environment
|
|
uses: ./.github/actions/bootstrap
|
|
with:
|
|
bootstrap-apt-packages: ""
|
|
compute-fingerprints: "false"
|
|
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: 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@153407881ec5c347639a548ade7d8ad1d6740e38 #v5.0.2
|
|
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 }}
|