You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a Snyk provided snyk mapper container that includes a script to install_snyk_tools.sh. It uses https://api.github.com/repos/snyk-tech-services/snyk-api-import/releases/latest to retrieve a URL that is used for a sha256 comparison before moving snyk-api-import-linux to the container's /usr/local/bin/snyk-api-import, then chmod +x it. Because the assets[] section for the latest release is empty, it can not determine the URL to retrieve snyk-api-import-linux.sha256 for that comparison.
We have a Snyk provided snyk mapper container that includes a script to install_snyk_tools.sh. It uses https://api.github.com/repos/snyk-tech-services/snyk-api-import/releases/latest to retrieve a URL that is used for a sha256 comparison before moving snyk-api-import-linux to the container's /usr/local/bin/snyk-api-import, then chmod +x it. Because the assets[] section for the latest release is empty, it can not determine the URL to retrieve snyk-api-import-linux.sha256 for that comparison.
Expected behaviour
browser_download_url for linux should be included in assets section of https://api.github.com/repos/snyk-tech-services/snyk-api-import/releases/latest
Actual behaviour
{
"url": "https://api.github.com/repos/snyk-tech-services/snyk-api-import/releases/144355565",
"assets_url": "https://api.github.com/repos/snyk-tech-services/snyk-api-import/releases/144355565/assets",
"upload_url": "https://uploads.github.com/repos/snyk-tech-services/snyk-api-import/releases/144355565/assets{?name,label}",
"html_url": "https://github.com/snyk-tech-services/snyk-api-import/releases/tag/v2.20.4",
"id": 144355565,
"author": {
"login": "aarlaud",
"id": 5722228,
"node_id": "MDQ6VXNlcjU3MjIyMjg=",
"avatar_url": "https://avatars.githubusercontent.com/u/5722228?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/aarlaud",
"html_url": "https://github.com/aarlaud",
"followers_url": "https://api.github.com/users/aarlaud/followers",
"following_url": "https://api.github.com/users/aarlaud/following{/other_user}",
"gists_url": "https://api.github.com/users/aarlaud/gists{/gist_id}",
"starred_url": "https://api.github.com/users/aarlaud/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/aarlaud/subscriptions",
"organizations_url": "https://api.github.com/users/aarlaud/orgs",
"repos_url": "https://api.github.com/users/aarlaud/repos",
"events_url": "https://api.github.com/users/aarlaud/events{/privacy}",
"received_events_url": "https://api.github.com/users/aarlaud/received_events",
"type": "User",
"site_admin": false
},
"node_id": "RE_kwDOD87WaM4ImrDt",
"tag_name": "v2.20.4",
"target_commitish": "master",
"name": "v2.20.4",
"draft": false,
"prerelease": false,
"created_at": "2024-03-01T11:42:52Z",
"published_at": "2024-03-01T11:54:53Z",
**"assets": [
],**
"tarball_url": "https://api.github.com/repos/snyk-tech-services/snyk-api-import/tarball/v2.20.4",
"zipball_url": "https://api.github.com/repos/snyk-tech-services/snyk-api-import/zipball/v2.20.4",
"body": "## 2.20.4 (2024-03-01)\n\n\n### Bug Fixes\n\n* adjust releaserc (96aaac1)\n\n\n\n"
}
Steps to reproduce
https://api.github.com/repos/snyk-tech-services/snyk-api-import/releases/latest
curl -s https://api.github.com/repos/snyk-tech-services/snyk-api-import/releases/latest
| jq -c '.assets[] | select (.browser_download_url | contains ("linux")) | .browser_download_url'
| xargs -I snyk_url curl -s -L -O snyk_url
Debug log
N/A
Screenshots
N/A
The text was updated successfully, but these errors were encountered: