Skip to content
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/workflows/notify-homebrew.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@
RELEASE_TAG: ${{ github.event.release.tag_name }}
run: |
: "${HOMEBREW_TAP_TOKEN:?Set the HOMEBREW_TAP_TOKEN repository secret}"
VERSION="${RELEASE_TAG#v}"
LINUX_ASSET="flora-${VERSION}-linux-x64.tar.gz"
RELEASE_URL="https://github.com/${GITHUB_REPOSITORY}/releases/download/${RELEASE_TAG}"

curl --fail --location --retry 3 \
--output "/tmp/${LINUX_ASSET}" \
"${RELEASE_URL}/${LINUX_ASSET}"

Check warning on line 24 in .github/workflows/notify-homebrew.yml

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Not enforcing HTTPS here might allow for redirections to insecure websites. Make sure it is safe here.

See more on https://sonarcloud.io/project/issues?id=flora-suite_flora&issues=AZ_rMlntVsBJPl6wmZKB&open=AZ_rMlntVsBJPl6wmZKB&pullRequest=177
Comment thread
github-advanced-security[bot] marked this conversation as resolved.
Fixed
tar -tzf "/tmp/${LINUX_ASSET}" | awk -F/ '$NF == "flora" { found = 1 } END { exit !found }'

curl --fail-with-body --request POST \
--header "Accept: application/vnd.github+json" \
--header "Authorization: Bearer ${HOMEBREW_TAP_TOKEN}" \
Expand Down
Loading