Skip to content

GitHub Action get_assets.yml fails #2

@maawoo

Description

@maawoo

The action works well when testing locally with https://github.com/nektos/act, however when executed on GitHub the curl -sL commands return 403 forbidden instead of returning the page content like this:

>> curl -sL "https://ceos.org/ard/files/PFS/NRB/?C=M;O=D"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
 <head>
  <title>Index of /ard/files/PFS/NRB</title>
 </head>
 <body>
<h1>Index of /ard/files/PFS/NRB</h1>
  <table>
   <tr><th valign="top"><img src="/icons/blank.gif" alt="[ICO]"></th><th><a href="?C=N;O=A">Name</a></th><th><a href="?C=M;O=A">Last modified</a></th><th><a href="?C=S;O=A">Size</a></th><th><a href="?C=D;O=A">Description</a></th></tr>
   <tr><th colspan="5"><hr></th></tr>
<tr><td valign="top"><img src="/icons/back.gif" alt="[PARENTDIR]"></td><td><a href="/ard/files/PFS/">Parent Directory</a>       </td><td>&nbsp;</td><td align="right">  - </td><td>&nbsp;</td></tr>
<tr><td valign="top"><img src="/icons/folder.gif" alt="[DIR]"></td><td><a href="v5.5/">v5.5/</a>                  </td><td align="right">2023-03-09 07:41  </td><td align="right">  - </td><td>&nbsp;</td></tr>
<tr><td valign="top"><img src="/icons/folder.gif" alt="[DIR]"></td><td><a href="v5.0/">v5.0/</a>                  </td><td align="right">2020-06-15 21:04  </td><td align="right">  - </td><td>&nbsp;</td></tr>
   <tr><th colspan="5"><hr></th></tr>
</table>
</body></html>

There might be some workarounds but as this form of automation is more of a nice to have, I'll not investigate any further for now. Any hints are much appreciated!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions