Skip to content

Broken Download Links #397

Description

@JVBotelho

Description:
Just configured it to use with CodeQL in my .net 7 project and seems that the links to download the sdk are someway broken

Task version:
3.0.3

Platform:

  • [ x ] Ubuntu
  • macOS
  • [ x ] Windows

Runner type:

  • [ x ] Hosted
  • Self-hosted

Repro steps:
configure into CodeQL Analyser as follow:
`...

jobs:
analyze:
name: Analyze
runs-on: windows-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
  fail-fast: false
  matrix:
    language: [ 'csharp' ]
    # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
    # Use only 'java' to analyze code written in Java, Kotlin or both
    # Use only 'javascript' to analyze code written in JavaScript, TypeScript or both
    # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support

steps:
- name: Checkout repository
  uses: actions/checkout@v3
  
- name: Setup .NET Core SDK
  uses: actions/setup-dotnet@v3.0.3
  with:
     global-json-file: Glitched Cat API/global.json
- run: dotnet build '.\Glitched Cat API.sln'
  working-directory: Glitched Cat API

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
  uses: github/codeql-action/init@v2
  with:
    languages: ${{ matrix.language }}
    
    ...`

Expected behavior:
download and install the sdk

Actual behavior:
fail to install sdk

dotnet-install: Downloading from "primary" link has failed with error:
Uri: https://dotnetcli.azureedge.net/dotnet/Sdk/7.0.0/dotnet-sdk-7.0.0-win-x64.zip
StatusCode: 404
Error: Unable to download https://dotnetcli.azureedge.net/dotnet/Sdk/7.0.0/dotnet-sdk-7.0.0-win-x64.zip. Returned HTTP status code: 404 Downloading from "legacy" link has failed with error:
Uri: https://dotnetcli.azureedge.net/dotnet/Sdk/7.0.0/dotnet-dev-win-x64.7.0.0.zip
StatusCode: 404
Error: Unable to download https://dotnetcli.azureedge.net/dotnet/Sdk/7.0.0/dotnet-dev-win-x64.7.0.0.zip. Returned HTTP status code: 404 Downloading from "primary" link has failed with error:
Uri: https://dotnetbuilds.azureedge.net/public/Sdk/7.0.0/dotnet-sdk-7.0.0-win-x64.zip
StatusCode: 404
Error: Unable to download https://dotnetbuilds.azureedge.net/public/Sdk/7.0.0/dotnet-sdk-7.0.0-win-x64.zip. Returned HTTP status code: 404 Downloading from "legacy" link has failed with error:
Uri: https://dotnetbuilds.azureedge.net/public/Sdk/7.0.0/dotnet-dev-win-x64.7.0.0.zip
StatusCode: 404
Error: Unable to download https://dotnetbuilds.azureedge.net/public/Sdk/7.0.0/dotnet-dev-win-x64.7.0.0.zip. Returned HTTP status code: 404
dotnet-install: Downloading from "primary" link has failed with error:
Uri: https://dotnetcli.azureedge.net/dotnet/Sdk/7.0.0/dotnet-sdk-7.0.0-win-x64.zip
StatusCode: 404
Error: Unable to download https://dotnetcli.azureedge.net/dotnet/Sdk/7.0.0/dotnet-sdk-7.0.0-win-x64.zip. Returned HTTP status code: 404 Downloading from "legacy" link has failed with error:
Uri: https://dotnetcli.azureedge.net/dotnet/Sdk/7.0.0/dotnet-dev-win-x64.7.0.0.zip
StatusCode: 404
Error: Unable to download https://dotnetcli.azureedge.net/dotnet/Sdk/7.0.0/dotnet-dev-win-x64.7.0.0.zip. Returned HTTP status code: 404 Downloading from "primary" link has failed with error:
Uri: https://dotnetbuilds.azureedge.net/public/Sdk/7.0.0/dotnet-sdk-7.0.0-win-x64.zip
StatusCode: 404
Error: Unable to download https://dotnetbuilds.azureedge.net/public/Sdk/7.0.0/dotnet-sdk-7.0.0-win-x64.zip. Returned HTTP status code: 404 Downloading from "legacy" link has failed with error:
Uri: https://dotnetbuilds.azureedge.net/public/Sdk/7.0.0/dotnet-dev-win-x64.7.0.0.zip
StatusCode: 404
Error: Unable to download https://dotnetbuilds.azureedge.net/public/Sdk/7.0.0/dotnet-dev-win-x64.7.0.0.zip. Returned HTTP status code: 404
dotnet-install: Downloading from "primary" link has failed with error:
Uri: https://dotnetcli.azureedge.net/dotnet/Sdk/7.0.0/dotnet-sdk-7.0.0-win-x64.zip
StatusCode: 404
Error: Unable to download https://dotnetcli.azureedge.net/dotnet/Sdk/7.0.0/dotnet-sdk-7.0.0-win-x64.zip. Returned HTTP status code: 404 Downloading from "legacy" link has failed with error:
Uri: https://dotnetcli.azureedge.net/dotnet/Sdk/7.0.0/dotnet-dev-win-x64.7.0.0.zip
StatusCode: 404
Error: Unable to download https://dotnetcli.azureedge.net/dotnet/Sdk/7.0.0/dotnet-dev-win-x64.7.0.0.zip. Returned HTTP status code: 404 Downloading from "primary" link has failed with error:
Uri: https://dotnetbuilds.azureedge.net/public/Sdk/7.0.0/dotnet-sdk-7.0.0-win-x64.zip
StatusCode: 404
Error: Unable to download https://dotnetbuilds.azureedge.net/public/Sdk/7.0.0/dotnet-sdk-7.0.0-win-x64.zip. Returned HTTP status code: 404 Downloading from "legacy" link has failed with error:
Uri: https://dotnetbuilds.azureedge.net/public/Sdk/7.0.0/dotnet-dev-win-x64.7.0.0.zip
StatusCode: 404
Error: Unable to download https://dotnetbuilds.azureedge.net/public/Sdk/7.0.0/dotnet-dev-win-x64.7.0.0.zip. Returned HTTP status code: 404
dotnet-install: Downloading from "primary" link has failed with error:
Uri: https://dotnetcli.azureedge.net/dotnet/Sdk/7.0.0/dotnet-sdk-7.0.0-win-x64.zip
StatusCode: 404
Error: Unable to download https://dotnetcli.azureedge.net/dotnet/Sdk/7.0.0/dotnet-sdk-7.0.0-win-x64.zip. Returned HTTP status code: 404 Downloading from "legacy" link has failed with error:
Uri: https://dotnetcli.azureedge.net/dotnet/Sdk/7.0.0/dotnet-dev-win-x64.7.0.0.zip
StatusCode: 404
Error: Unable to download https://dotnetcli.azureedge.net/dotnet/Sdk/7.0.0/dotnet-dev-win-x64.7.0.0.zip. Returned HTTP status code: 404 Downloading from "primary" link has failed with error:
Uri: https://dotnetbuilds.azureedge.net/public/Sdk/7.0.0/dotnet-sdk-7.0.0-win-x64.zip
StatusCode: 404
Error: Unable to download https://dotnetbuilds.azureedge.net/public/Sdk/7.0.0/dotnet-sdk-7.0.0-win-x64.zip. Returned HTTP status code: 404 Downloading from "legacy" link has failed with error:
Uri: https://dotnetbuilds.azureedge.net/public/Sdk/7.0.0/dotnet-dev-win-x64.7.0.0.zip
StatusCode: 404
Error: Unable to download https://dotnetbuilds.azureedge.net/public/Sdk/7.0.0/dotnet-dev-win-x64.7.0.0.zip. Returned HTTP status code: 404
Exception: D:\a\_actions\actions\setup-dotnet\v3.0.3\externals\install-dotnet.ps1:[12](https://github.com/JVBotelho/Glitched-Cat-API/actions/runs/4389425231/jobs/7686953944#step:3:13)44
Line |
1[24](https://github.com/JVBotelho/Glitched-Cat-API/actions/runs/4389425231/jobs/7686953944#step:3:25)4 |      throw "Could not find `"$assetName`" with version = $($DownloadLi …
     |      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Could not find ".NET Core SDK" with version = 7.0.0 Refer to: https://aka.ms/dotnet-os-lifecycle for information
     | on .NET support

Error: Failed to install dotnet 1. dotnet-install: Note that the intended use of this script is for Continuous Integration (CI) scenarios, where:
dotnet-install: - The SDK needs to be installed without user interaction and without admin rights.
dotnet-install: - The SDK installation doesn't need to persist across multiple CI runs.
dotnet-install: To set up a development environment or to run apps, use installers rather than this script. Visit https://dotnet.microsoft.com/download to get the installer.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions