-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Description
Describe the bug
Uploading certain single files with artifact v7 and archive: false fails at CreateArtifact with a 400 validation error for mime_type.
This appears related to MIME type values sent by the artifact client for specific extensions.
Related upstream report in actions/upload-artifact: actions/upload-artifact#765
Error:
Failed to CreateArtifact: Received non-retryable error: Failed request: (400) Bad Request: mime_type a valid mime_type is required for this artifact version
To Reproduce
- Create a workflow that uses
actions/upload-artifact@v4witharchive: false. - Upload a single
.xlsxfile (or.7zin some reports). - Run on
ubuntu-latest(Linux hosted runner). - Observe
CreateArtifactfails with HTTP 400 andmime_type a valid mime_type is required for this artifact version.
Expected behavior
Upload should succeed for these file types, or the client should fall back to a backend-accepted MIME type when a mapped type is rejected.
Screenshots
See run/error details linked in actions/upload-artifact#765
Desktop (please complete the following information):
- OS: Linux (
ubuntu-latestrunner) - Browser: N/A
- Version: N/A
Additional context
actions/upload-artifactissue [CACHE] 503 on chunk upload #765 reports reproducible failure for.xlsxwitharchive: false.- Additional user reports mention
.7zfailing, while some other types (e.g..apk,.tar.xz) can succeed, suggesting MIME-specific backend validation differences. - This may involve MIME mapping in
@actions/artifactused duringCreateArtifact.