Open minamijoyo opened 1 week ago
Hey @minamijoyo thanks for this investigation! You are right about your analysis. Since we want to upload multiple artefacts with digger step directly we could not use the upload-artefact official step (actually we tried to use this in earlier version by saving to folder and group uploading but it didn't work very well). So we have reversed the steps and converted into golang requests
So yes, we need to perform the same reversing again unless GH have started allowing invoking the upload via some official api
I noticed the following deprecation warning when using
upload-plan-destination: github
.The minimum reproduction case is as follows:
The current vLatest commit ID is b552ebd7556eed0a297af16f44042177c6b, but looking at
action.yml
it doesn't look like we are depending onactions/upload-artifact
. https://github.com/diggerhq/digger/blob/b552ebd7556eed0a297af16f44042177c6b755ba/action.ymlCurious, I read the source and found that the current implementation is calling Artifact's API directly. https://github.com/diggerhq/digger/blob/b552ebd7556eed0a297af16f44042177c6b755ba/libs/storage/plan_storage.go#L32
api-version=6.0-preview
looked suspicious, so I went to read the actions/upload-artifact implementation and found thatactions/upload-artifact@v4
uses npm's@actions/artifact
v2. https://github.com/actions/upload-artifact/commit/0f573694adb2afc7b30f9435fac65e3ad281da4eAt a quick glance
@actions/artifact
v2 endpoints appear to be completely different from@actions/artifact
v1. https://github.com/actions/toolkit/blob/%40actions/artifact%401.1.1/packages/artifact/src/internal/utils.ts#L222 https://github.com/actions/toolkit/blob/%40actions/artifact%402.0.1/packages/artifact/src/internal/shared/artifact-twirp-client.ts#L57As I understand it, even if we are not using
actions/upload-artifact
directly, this old Artifact API will also be likely to unavailable after November 30, 2024, so it looks like something needs to be done before EOL. https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/