Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Where to download the firmware binaries built with the emsec/ChameleonMini actions scripts? #324

Closed
maxieds opened this issue Jul 27, 2022 · 2 comments

Comments

@maxieds
Copy link
Contributor

maxieds commented Jul 27, 2022

One of the recent pull requests I submitted had custom make targets to build the firmware. @david-oswald suggested to keep things simple for new users and only provide a few of the most common builds via the automatic GitHub build scripts for this project. I still cannot find where the official firmware builds are located. I posted up-to-date binaries for the DESFire targets in #321 until the PR #323 is merged.

I searched around and found links to using the GitHub REST API. The pointers on this page suggest something like:

$ curl -H "Accept: application/vnd.github+json" https://api.github.com/repos/emsec/ChameleonMini/actions | head -n 32
$ curl -H "Accept: application/vnd.github+json" https://api.github.com/repos/emsec/ChameleonMini/actions/artifacts/309513562

Trying to download via the command line gives ERROR 403: Forbidden. using wget https://api.github.com/repos/emsec/ChameleonMini/actions/artifacts/309513562/zip. Navigating to the download link by web browser yields an error about invalid access tokens. The required access token for this public repository must have the public_repo actions scope. I have a personal access token with all of the relevant scopes applied that I can see and the download is still forbidden:

$ curl -H "Accept: application/vnd.github+json" -H "Authorization: tokenghp_<REST-OF-TOKEN-STRING>" https://api.github.com/repos/emsec/ChameleonMini/actions/artifacts/309513562/zip 
{
  "message": "You must have the actions scope to download artifacts.",
  "documentation_url": "https://docs.github.com/rest/reference/actions#download-an-artifact"
}

Is it possible that there is a configuration setting on the admin side of the repository permissions that is the problem? Has anyone else without admin authentication on this repository had luck downloading these files? I cannot figure it out.

@fptrs
Copy link
Collaborator

fptrs commented Jul 27, 2022

The firmware binaries are available on the release page.

@maxieds
Copy link
Contributor Author

maxieds commented Jul 28, 2022

Check! 👍🏻

@maxieds maxieds closed this as completed Jul 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants