@@ -97,13 +97,13 @@ jobs:
9797 # This allows the created PR to trigger tests and other workflows
9898 GITHUB_TOKEN : ${{ secrets.ORG_REPO_TOKEN }}
9999
100- # `trigger-version-update` triggers the `update_version` workflow in the `trivy-telemetry` repository
101- # and the trivy-downloads repository.
100+ # `trigger-version-update` triggers workflows in the `aqua` repositories to update the Trivy version.
102101 trigger-version-update :
103102 needs : deploy-packages
104103 runs-on : ubuntu-22.04
105104 steps :
106105 - name : Trigger update_version workflow in trivy-telemetry
106+ if : always()
107107 env :
108108 # Use ORG_REPO_TOKEN instead of GITHUB_TOKEN
109109 # This allows triggering workflows in other repositories
@@ -115,6 +115,7 @@ jobs:
115115 --field "version=$GITHUB_REF_NAME"
116116
117117 - name : Trigger update_version workflow in trivy-downloads
118+ if : always()
118119 env :
119120 # Use ORG_REPO_TOKEN instead of GITHUB_TOKEN
120121 # This allows triggering workflows in other repositories
@@ -127,6 +128,7 @@ jobs:
127128 --field artifact=trivy
128129
129130 - name : Trigger version update and release workflow in trivy-chocolatey
131+ if : always()
130132 env :
131133 # Use ORG_REPO_TOKEN instead of GITHUB_TOKEN
132134 # This allows triggering workflows in other repositories
@@ -136,3 +138,16 @@ jobs:
136138 --repo "$GITHUB_REPOSITORY_OWNER/trivy-chocolatey" \
137139 --ref main \
138140 --field "version=$GITHUB_REF_NAME"
141+
142+ - name : Run version bump in trivy-action
143+ if : always()
144+ env :
145+ # Use ORG_REPO_TOKEN instead of GITHUB_TOKEN
146+ # This allows triggering workflows in other repositories
147+ GH_TOKEN : ${{ secrets.ORG_REPO_TOKEN }}
148+ run : |
149+ VERSION="${GITHUB_REF_NAME#v}"
150+ gh workflow run bump-trivy.yaml \
151+ --repo "$GITHUB_REPOSITORY_OWNER/trivy-action" \
152+ --ref master \
153+ --field "trivy_version=$VERSION"
0 commit comments