install icon indicating copy to clipboard operation
install copied to clipboard

HTTP 403 from the tool cache

Open torhovland opened this issue 5 years ago • 3 comments

Do the checklist before filing an issue:

  • [x] Is this related to the actions-rs Actions? If you think it's a problem related to Github Actions in general, use GitHub Community forum instead: https://github.community
  • [x] You've read the Contributing section about bugs reporting: https://github.com/actions-rs/.github/blob/master/CONTRIBUTING.md#reporting-bugs
  • [ ] Is this something you can debug and fix? Send a pull request! Bug fixes and documentation fixes are welcome.

Description

When actions-rs/[email protected] tries to download a crate from the tools cache, it gets an Unexpected HTTP response: 403.

Workflow code

name: Deploy

on: push

jobs:
  deploy:
    name: Deploy
    runs-on: ubuntu-latest
    steps:
      - name: Checkout code
        uses: actions/checkout@v2

      - name: Install Rust tools
        uses: actions-rs/toolchain@v1
        with:
          profile: minimal
          target: wasm32-unknown-unknown
          toolchain: stable
          override: true

      - name: Install Trunk
        uses: actions-rs/[email protected]
        with:
          crate: trunk
          version: latest
          use-tool-cache: true

Action output

Run actions-rs/[email protected]
  with:
    crate: trunk
    version: latest
    use-tool-cache: true
    use-cache: true
Tool cache is explicitly enabled via the Action input
Downloading from the tool cache
  Newest trunk version available at crates.io: 0.8.2
  Downloading trunk signature into /tmp/trunk.zip.sig
  Warning: Unable to download trunk == latest from the tool cache: Error: Unexpected HTTP response: 403

Expected behavior

That Trunk got quickly installed using the tool cache.

torhovland avatar Feb 16 '21 19:02 torhovland

I found a very similar looking issues in the old repo: https://github.com/actions-rs/tool-cache/issues/23 and that one is apparently related to https://github.com/actions-rs/tool-cache/issues/18 which might be the root issue.

Something about the action seems to get disabled, if there has been no activity on the repo for 60 days.

kreibaum avatar Mar 14 '21 17:03 kreibaum

Is there any progress on this issue? I just tried using tool-cache on wasm-pack and got a 403.

PoignardAzur avatar Aug 24 '21 16:08 PoignardAzur

from tools-cache README:

Deprecation warning

It is archived now and will not be updated anymore. actions-rs/install Action will be updated eventually to utilize GitHub runners cache to store compiled binaries.

so presumably this will not be fixed until the cache method changes to https://github.com/actions-rs/meta/issues/21

TDHolmes avatar Dec 25 '21 19:12 TDHolmes