Skip to content

generic url for latest release zip file #10942

Answered by ggbecker
wdlarg01 asked this question in Q&A
Discussion options

You must be logged in to vote

I believe there is no easy way to do that. We workaround here for example:

https://github.com/OpenSCAP/scap-workbench/pull/302/files#diff-d0777657fa3fd81d23aaf7273e58aee453b04e67882517900c56daeef9b3e4c1R78-R80

        REL_TAG=`wget -q -O- https://api.github.com/repos/ComplianceAsCode/content/releases/latest | jq -r '.tag_name'`
        REL_TAG_NUM=`echo ${REL_TAG} | cut -d"v" -f2`
        DWN_LINK="https://github.com/${REPOSITORY}/releases/download/${REL_TAG}/scap-security-guide-${REL_TAG_NUM}.zip"

echoing DWN_LINK for me gives at this moment the following:

$ echo $DWN_LINK
https://github.com//releases/download/v0.1.69/scap-security-guide-0.1.69.zip

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@wdlarg01
Comment options

@wdlarg01
Comment options

Answer selected by wdlarg01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants