You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed the following deprecation warning when using upload-plan-destination: github.
Deprecation notice: v1, v2, and v3 of the artifact actions
The following artifacts were uploaded using a version of actions/upload-artifact that is scheduled for deprecation: "environments_dev_dir1", "environments_prod_dir2".
Please update your workflow to use v4 of the artifact actions.
Learn more: https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/
The minimum reproduction case is as follows:
name: Digger Workflowon:pull_request:branches: [ main ]types: [ opened, synchronize ]issue_comment:types: [created]workflow_dispatch:jobs:digger-job:runs-on: ubuntu-latestpermissions:contents: write # required to merge PRsactions: write # required for plan persistenceid-token: write # required for workload-identity-federationpull-requests: write # required to post PR commentsstatuses: write # required to validate combined PR statussteps:- uses: diggerhq/digger@vLatestwith:no-backend: truedisable-locking: trueupload-plan-destination: githubenv:GITHUB_CONTEXT: ${{ toJson(github) }}GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
api-version=6.0-preview looked suspicious, so I went to read the actions/upload-artifact implementation and found that actions/upload-artifact@v4 uses npm's @actions/artifact v2. actions/upload-artifact@0f57369
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 b552ebd, but looking at
action.yml
it doesn't look like we are depending onactions/upload-artifact
.https://github.com/diggerhq/digger/blob/b552ebd7556eed0a297af16f44042177c6b755ba/action.yml
Curious, I read the source and found that the current implementation is calling Artifact's API directly.
digger/libs/storage/plan_storage.go
Line 32 in b552ebd
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.actions/upload-artifact@0f57369
At 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#L57
As 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/
The text was updated successfully, but these errors were encountered: