Skip to content

codeaf v0.8.2

Latest

Choose a tag to compare

@github-actions github-actions released this 23 Oct 15:46
· 3173 commits to e3f7822d6bb9373d29eb6a206c6ab0a2401502ba since this release

Fixed

  • the installer says why GitHub's API refused, and retries once without a token GitHub refused — #1890 · build docs

    2 things that are no longer true
    • One sentence was believed to cover every refusal from GitHub's API: GitHub's API could not be reached or refused (a rate limit, or a repository you cannot read?); pin VERSION=<tag>, or export GITHUB_TOKEN. It is retired. The installer now names a used-up rate limit with the local time it lifts, a rejected token, refused access, a repository it cannot find, a server fault or an unreachable host, and never tells someone who exported a token to export one.
    • A token GitHub refused ended the install. A 401, 403 or 429 on a token-bearing lookup now sets the token aside and asks the same lookup once without it, because the anonymous quota is a separate bucket; the install goes on with the note GitHub refused GITHUB_TOKEN (…); continuing without it.

    http_get used to keep only the status code, so the reason GitHub gives in the
    same response (x-ratelimit-remaining, x-ratelimit-reset, the body's
    message) was discarded. It now keeps the headers and body, and a pure function
    of the three picks the sentence. Downloads still never carry the token.

Install this stable build:

curl -fsSL https://raw.githubusercontent.com/Agent-Field/CodeAF/e3f7822d6bb9373d29eb6a206c6ab0a2401502ba/scripts/install.sh | bash -s -- --stable
curl -fsSL https://raw.githubusercontent.com/Agent-Field/CodeAF/e3f7822d6bb9373d29eb6a206c6ab0a2401502ba/scripts/install.sh | VERSION=v0.8.2 bash