File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -145,10 +145,12 @@ jobs:
145145 ${{ vars.GREENBONE_REGISTRY }}/${{ needs.meta.outputs.url }}
146146 secrets : inherit
147147
148- push- sbom :
148+ sbom :
149149 name : Scan image and push SBOM
150150 if : inputs.service && startsWith(github.ref, 'refs/tags/v')
151- needs : build
151+ needs :
152+ - meta
153+ - build
152154 uses : greenbone/workflows/.github/workflows/generate-and-push-sbom-with-trivy-3rd-gen.yml@main
153155 with :
154156 image-url : " ${{ vars.GREENBONE_REGISTRY }}/${{ needs.meta.outputs.url }}:${{ github.ref_name }}"
@@ -158,6 +160,20 @@ jobs:
158160 artifact-url : " ${{ vars.GREENBONE_REGISTRY }}/${{ needs.meta.outputs.url }}-sbom:${{ github.ref_name }}"
159161 secrets : inherit
160162
163+ harbor-replication :
164+ if : github.event_name != 'pull_request'
165+ needs :
166+ - meta
167+ - build
168+ runs-on : self-hosted-generic
169+ steps :
170+ - name : Trigger harbor replication
171+ uses : greenbone/actions/trigger-harbor-replication@v3
172+ with :
173+ registry : ${{ vars.GREENBONE_REGISTRY }}
174+ user : ${{ secrets.GREENBONE_REGISTRY_REPLICATION_USER }}
175+ token : ${{ secrets.GREENBONE_REGISTRY_REPLICATION_TOKEN }}
176+
161177 automatix :
162178 if : inputs.service && startsWith(github.ref, 'refs/tags/v')
163179 needs :
@@ -178,7 +194,6 @@ jobs:
178194 needs :
179195 - meta
180196 - build
181- - push-sbom
182197 - harbor-replication
183198 - automatix
184199 if : ${{ !cancelled() && inputs.service && startsWith(github.ref, 'refs/tags/v') && startsWith(inputs.notify, 'true') }}
You can’t perform that action at this time.
0 commit comments