Summary of the github action failure
- Error: "This request has been automatically failed because it uses a deprecated version of
actions/upload-artifact: v3."
- File referenced: .github/workflows/build-guide.yml
Root cause
- The workflow uses actions/upload-artifact@v3 in two places. v3 of the artifact actions has been deprecated and the runner rejects jobs that use it, causing the job to fail during action preparation.
Fix
- Update the workflow to use the supported v4 of the upload-artifact action. Replace both uses of actions/upload-artifact@v3 with actions/upload-artifact@v4.
Exact changes to make (apply to .github/workflows/build-guide.yml)
Replace this block (first occurrence)
- name: Upload master document artifact
uses: actions/upload-artifact@v3
with:
name: master-document
path: Build/Sysmon.md
retention-days: 30
with
- name: Upload master document artifact
uses: actions/upload-artifact@v4
with:
name: master-document
path: Build/Sysmon.md
retention-days: 30
And replace this block (second occurrence)
- name: Upload PDF artifact
uses: actions/upload-artifact@v3
with:
name: sysmon-guide-pdf
path: Build/SysmonGuide.pdf
retention-days: 90
with
- name: Upload PDF artifact
uses: actions/upload-artifact@v4
with:
name: sysmon-guide-pdf
path: Build/SysmonGuide.pdf
retention-days: 90
Summary of the github action failure
actions/upload-artifact: v3."Root cause
Fix
Exact changes to make (apply to .github/workflows/build-guide.yml)
Replace this block (first occurrence)
uses: actions/upload-artifact@v3
with:
name: master-document
path: Build/Sysmon.md
retention-days: 30
with
uses: actions/upload-artifact@v4
with:
name: master-document
path: Build/Sysmon.md
retention-days: 30
And replace this block (second occurrence)
uses: actions/upload-artifact@v3
with:
name: sysmon-guide-pdf
path: Build/SysmonGuide.pdf
retention-days: 90
with
uses: actions/upload-artifact@v4
with:
name: sysmon-guide-pdf
path: Build/SysmonGuide.pdf
retention-days: 90