Skip to content

[GLib][CI] Resolve flakey 403 error for push to nuget #48604

@alinaliBQ

Description

@alinaliBQ

Describe the bug, including details regarding any error messages, version, and platform.

This issue is for the GLib CI workflow. Occasionally we get 403 request errors when nuget is attempting to pushing the vcpkg package. Not sure if this is a GitHub error.

Example run:
https://github.com/apache/arrow/actions/runs/20385756030/job/58586198964#step:12:2836
Example Log:

Waiting for 13 remaining binary cache submissions...
Uploading binaries for grpc[codegen,core]:x64-windows@1.71.0 to NuGet from GitHub
error: "C:\ProgramData\Chocolatey\bin\nuget.exe" push -ForceEnglishOutput -Verbosity detailed -NonInteractive "D:\a\arrow\arrow\vcpkg\buildtrees\grpc_x64-windows.1.71.0-vcpkgfbadb82ec664eafb3aa932a14349800c97b56c7300d8df29e4f284460448911e.nupkg" -Timeout 100 -Source GitHub failed with exit code 1
NuGet Version: 7.0.1.1
Pushing grpc_x64-windows.1.71.0-vcpkgfbadb82ec664eafb3aa932a14349800c97b56c7300d8df29e4f284460448911e.nupkg to 'https://nuget.pkg.github.com/apache'...
  PUT https://nuget.pkg.github.com/apache/
WARNING: Your request could not be authenticated by the GitHub Packages service. Please ensure your access token is valid and has the appropriate scopes configured.
  Forbidden https://nuget.pkg.github.com/apache/ 25771ms
Response status code does not indicate success: 403 (Forbidden).
System.Net.Http.HttpRequestException: Response status code does not indicate success: 403 (Forbidden).

Relevant code:

- name: Setup NuGet credentials for vcpkg caching
shell: bash
run: |
$(vcpkg fetch nuget | tail -n 1) \
sources add \
-source "https://nuget.pkg.github.com/$GITHUB_REPOSITORY_OWNER/index.json" \
-storepasswordincleartext \
-name "GitHub" \
-username "$GITHUB_REPOSITORY_OWNER" \
-password "${{ secrets.GITHUB_TOKEN }}"
$(vcpkg fetch nuget | tail -n 1) \
setapikey "${{ secrets.GITHUB_TOKEN }}" \
-source "https://nuget.pkg.github.com/$GITHUB_REPOSITORY_OWNER/index.json"

Component(s)

GLib

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions