tailscale / github-action

A GitHub Action to connect your workflow to your Tailscale network.
BSD 3-Clause "New" or "Revised" License
519 stars 78 forks source link

1.58.0 gives an invalid checksum #106

Closed Xenfo closed 5 months ago

Xenfo commented 5 months ago

The action fails due to an issue on Tailscale's side.

$ curl -H user-agent:tailscale-github-action -L "https://pkgs.tailscale.com/stable/tailscale_1.58.0_amd64.tgz.sha256"
failed to get hash
Run tailscale/github-action@v2
  with:
    oauth-client-id: ***
    oauth-secret: ***
    tags: tag:ci
    version: 1.58.0
  env:
    CARGO_INCREMENTAL: 0
    CARGO_TERM_COLOR: always
Run if [ X64 = "ARM64" ]; then
  if [ X64 = "ARM64" ]; then
    TS_ARCH="arm64"
  elif [ X64 = "ARM" ]; then
    TS_ARCH="arm"
  elif [ X64 = "X86" ]; then
    TS_ARCH="386"
  elif [ X64 = "X64" ]; then
    TS_ARCH="amd64"
  else
    TS_ARCH="amd64"
  fi
  MINOR=$(echo "$VERSION" | awk -F '.' {'print $2'})
  if [ $((MINOR % 2)) -eq 0 ]; then
    URL="[https://pkgs.tailscale.com/stable/tailscale_${VERSION}_${TS_ARCH}.tgz](https://pkgs.tailscale.com/stable/tailscale_$%7BVERSION%7D_$%7BTS_ARCH%7D.tgz)"
  else
    URL="[https://pkgs.tailscale.com/unstable/tailscale_${VERSION}_${TS_ARCH}.tgz](https://pkgs.tailscale.com/unstable/tailscale_$%7BVERSION%7D_$%7BTS_ARCH%7D.tgz)"
  fi
  if ! [[ "$SHA256SUM" ]] ; then
    SHA256SUM="$(curl -H user-agent:tailscale-github-action -L "${URL}.sha256")"
  fi
  curl -H user-agent:tailscale-github-action -L "$URL" -o tailscale.tgz --max-time 300
  echo "$SHA256SUM  tailscale.tgz" | sha256sum -c
  tar -C /tmp -xzf tailscale.tgz
  rm tailscale.tgz
  TSPATH=/tmp/tailscale_${VERSION}_${TS_ARCH}
  sudo mv "${TSPATH}/tailscale" "${TSPATH}/tailscaled" /usr/bin
  shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
  env:
    CARGO_INCREMENTAL: 0
    CARGO_TERM_COLOR: always
    VERSION: 1.58.0
    SHA256SUM: 
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100    19  100    19    0     0    101      0 --:--:-- --:--:-- --:--:--   102
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100    10  100    10    0     0    103      0 --:--:-- --:--:-- --:--:--   105
sha256sum: 'standard input': no properly formatted SHA256 checksum lines found
DentonGentry commented 5 months ago

https://github.com/tailscale/tailscale/releases/tag/v1.58.0 "NOTE 21-Jan-2024: rollout of 1.58.0 has been paused while we investigate reports of a problem in handling portmap responses."