@@ -24,6 +24,7 @@ concurrency: release
2424env :
2525 STACKS_FILEPATH : " images.json"
2626 PATCHED_USNS_FILENAME : " patched-usns.json"
27+ USNS_NOTICES_ARTIFACT : " usns-notices"
2728jobs :
2829 preparation :
2930 name : Preparation
@@ -205,13 +206,31 @@ jobs:
205206 echo "platforms=$platforms"
206207 echo "platforms=${platforms}" >> "$GITHUB_OUTPUT"
207208
209+ download_usns :
210+ name : Download USNs
211+ runs-on : ubuntu-24.04
212+ needs : [preparation]
213+ if : ${{ needs.preparation.outputs.polling_type == 'usn' }}
214+ steps :
215+ - name : Download latest USNs
216+ uses : paketo-buildpacks/github-config/actions/stack/download-latest-usns@main
217+ with :
218+ distro : ${{ needs.preparation.outputs.os_codename }}
219+ usns-output-path : " ${{ github.workspace }}/${{ env.USNS_NOTICES_ARTIFACT }}.json"
220+
221+ - name : Upload USNs notices
222+ uses : actions/upload-artifact@v4
223+ with :
224+ name : ${{ env.USNS_NOTICES_ARTIFACT }}
225+ path : " ${{ github.workspace }}/${{ env.USNS_NOTICES_ARTIFACT }}.json"
226+
208227 # The following job is specific to Ubuntu images. It checks for new
209228 # USNs (Ubuntu Security Notices) and triggers the flow to create
210229 # a new release with the latest images that have the USNs patched.
211230 poll_usns :
212231 name : Poll USNs
213232 runs-on : ubuntu-24.04
214- needs : [preparation]
233+ needs : [preparation, download_usns ]
215234 if : ${{ needs.preparation.outputs.polling_type == 'usn' }}
216235 strategy :
217236 matrix :
@@ -220,6 +239,11 @@ jobs:
220239 outputs :
221240 usns : ${{ steps.new_usns.outputs.usns }}
222241 steps :
242+ - name : Download USNs notices
243+ uses : actions/download-artifact@v4
244+ with :
245+ name : ${{ env.USNS_NOTICES_ARTIFACT }}
246+
223247 - name : Check for Previous Releases
224248 id : check_previous
225249 run : |
@@ -385,6 +409,7 @@ jobs:
385409 uses : paketo-buildpacks/github-config/actions/stack/get-usns@main
386410 with :
387411 distribution : ${{ needs.preparation.outputs.os_codename }}
412+ api_url : " file:///github/workspace/${{ env.USNS_NOTICES_ARTIFACT }}.json"
388413 packages_filepath : " ./${{ matrix.arch.name }}-package-list-${{ matrix.stacks.name }}"
389414 last_usns_filepath : " ./${{ matrix.arch.name }}-${{ matrix.stacks.name }}-${{ env.PATCHED_USNS_FILENAME }}-previous"
390415 usns_output_path : " ./${{ matrix.arch.name }}-${{ matrix.stacks.name }}-${{ env.PATCHED_USNS_FILENAME }}"
0 commit comments