mirror of
https://github.com/anchore/syft.git
synced 2025-11-17 08:23:15 +01:00
fix CPE workflow (#2252)
Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
This commit is contained in:
parent
234ce4e1f3
commit
c4b464e616
@ -9,8 +9,7 @@ permissions:
|
|||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
env:
|
env:
|
||||||
GO_VERSION: "1.21.x"
|
SLACK_NOTIFICATIONS: true
|
||||||
GO_STABLE_VERSION: true
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
upgrade-cpe-dictionary-index:
|
upgrade-cpe-dictionary-index:
|
||||||
@ -19,10 +18,8 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 #v4.1.1
|
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 #v4.1.1
|
||||||
|
|
||||||
- uses: actions/setup-go@3df4ab11eba7bda6032a0b82a6bb43b11571feac #v4.0.0
|
- name: Bootstrap environment
|
||||||
with:
|
uses: ./.github/actions/bootstrap
|
||||||
go-version: ${{ env.GO_VERSION }}
|
|
||||||
stable: ${{ env.GO_STABLE_VERSION }}
|
|
||||||
|
|
||||||
- run: |
|
- run: |
|
||||||
make generate-cpe-dictionary-index
|
make generate-cpe-dictionary-index
|
||||||
@ -44,3 +41,12 @@ jobs:
|
|||||||
body: |
|
body: |
|
||||||
Update CPE dictionary index based on the latest available CPE dictionary
|
Update CPE dictionary index based on the latest available CPE dictionary
|
||||||
token: ${{ steps.generate-token.outputs.token }}
|
token: ${{ steps.generate-token.outputs.token }}
|
||||||
|
|
||||||
|
- uses: 8398a7/action-slack@fbd6aa58ba854a740e11a35d0df80cb5d12101d8 #v3.15.1
|
||||||
|
with:
|
||||||
|
status: ${{ job.status }}
|
||||||
|
fields: workflow,eventName,job
|
||||||
|
text: Syft CPE dictionary index update failed
|
||||||
|
env:
|
||||||
|
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_TOOLBOX_WEBHOOK_URL }}
|
||||||
|
if: ${{ failure() && env.SLACK_NOTIFICATIONS == 'true' }}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user