├── .codespellignore ├── .github ├── release-please-manifest.json ├── release-please-config.json └── workflows │ ├── release-please.yml │ ├── ci.yml │ └── release.yml ├── gh_release_install ├── __init__.py ├── unpack.py ├── checksum.py ├── cli.py └── main.py ├── tests ├── fixtures │ ├── test.txt.bz2 │ └── gh_releases_latest.json ├── conftest.py ├── unpack_test.py ├── main_test.py └── checksum_test.py ├── Dockerfile ├── renovate.json ├── Makefile ├── pyproject.toml ├── .pre-commit-config.yaml ├── examples.sh ├── .gitignore ├── e2e └── install_test.py ├── README.md ├── CHANGELOG.md └── LICENSE /.codespellignore: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.github/release-please-manifest.json: -------------------------------------------------------------------------------- 1 | {".":"0.13.1"} 2 | -------------------------------------------------------------------------------- /gh_release_install/__init__.py: -------------------------------------------------------------------------------- 1 | from __future__ import annotations 2 | 3 | from .main import GhReleaseInstall 4 | -------------------------------------------------------------------------------- /tests/fixtures/test.txt.bz2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jooola/gh-release-install/HEAD/tests/fixtures/test.txt.bz2 -------------------------------------------------------------------------------- /.github/release-please-config.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json", 3 | "bootstrap-sha": "e0c14902e04a94400d543861f630beadb5156114", 4 | "include-component-in-tag": false, 5 | "packages": { 6 | ".": { 7 | "release-type": "python", 8 | "package-name": "gh-release-install" 9 | } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /tests/conftest.py: -------------------------------------------------------------------------------- 1 | from __future__ import annotations 2 | 3 | import pytest 4 | 5 | from gh_release_install import GhReleaseInstall 6 | 7 | 8 | @pytest.fixture 9 | def installer(): 10 | return GhReleaseInstall( 11 | repository="prometheus/prometheus", 12 | asset="prometheus-{version}.linux-amd64.tar.gz", 13 | extract="prometheus-{version}.linux-amd64/prometheus", 14 | destination="/usr/local/bin/prometheus", 15 | ) 16 | -------------------------------------------------------------------------------- /tests/unpack_test.py: -------------------------------------------------------------------------------- 1 | from __future__ import annotations 2 | 3 | from pathlib import Path 4 | 5 | from gh_release_install.unpack import _unpack_bz2 6 | 7 | here = Path(__file__).parent 8 | 9 | 10 | def test_unpack_bz2(tmp_path): 11 | src = Path(here / "fixtures/test.txt.bz2") 12 | dest = Path(tmp_path / "test.txt") 13 | 14 | _unpack_bz2(src, tmp_path) 15 | 16 | assert dest.is_file 17 | assert dest.read_text(encoding="utf-8") == "Hello World\n" 18 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM python:3.14-alpine as builder 2 | 3 | RUN python3 -m pip install --upgrade build 4 | 5 | COPY . . 6 | 7 | RUN python3 -m build 8 | 9 | FROM python:3.14-alpine 10 | 11 | ENV PYTHONDONTWRITEBYTECODE=1 12 | ENV PYTHONUNBUFFERED=1 13 | 14 | COPY --from=builder dist/gh_release_install*.whl . 15 | RUN pip --no-cache-dir install --no-compile gh_release_install*.whl \ 16 | && rm gh_release_install*.whl 17 | 18 | ENTRYPOINT [ "/usr/local/bin/gh-release-install" ] 19 | -------------------------------------------------------------------------------- /.github/workflows/release-please.yml: -------------------------------------------------------------------------------- 1 | name: Release please 2 | 3 | on: 4 | push: 5 | branches: [main] 6 | 7 | jobs: 8 | release-please: 9 | if: github.repository == 'jooola/gh-release-install' 10 | 11 | runs-on: ubuntu-latest 12 | steps: 13 | - uses: googleapis/release-please-action@v4 14 | with: 15 | token: ${{ secrets.RELEASE_TOKEN }} 16 | config-file: .github/release-please-config.json 17 | manifest-file: .github/release-please-manifest.json 18 | -------------------------------------------------------------------------------- /renovate.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://docs.renovatebot.com/renovate-schema.json", 3 | "extends": [ 4 | "config:recommended", 5 | ":enablePreCommit", 6 | ":preserveSemverRanges", 7 | ":semanticCommits" 8 | ], 9 | "labels": ["dependencies"], 10 | "lockFileMaintenance": { 11 | "enabled": true, 12 | "automerge": true, 13 | "schedule": ["after 4am and before 5am on monday"] 14 | }, 15 | "packageRules": [ 16 | { 17 | "matchUpdateTypes": ["patch"], 18 | "automerge": true 19 | } 20 | ] 21 | } 22 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | .PHONY: install format lint test e2e examples 2 | 3 | SHELL = bash 4 | 5 | all: install format lint test 6 | 7 | install: venv 8 | venv: 9 | python3 -m venv venv 10 | venv/bin/pip install -e .[dev] 11 | 12 | format: venv 13 | venv/bin/black . 14 | venv/bin/isort . 15 | 16 | lint: venv 17 | venv/bin/black . --diff --check 18 | venv/bin/pylint gh_release_install tests 19 | venv/bin/mypy gh_release_install tests 20 | 21 | test: venv 22 | venv/bin/pytest --color=yes -v --cov=gh_release_install tests 23 | 24 | e2e: venv 25 | venv/bin/pytest --color=yes -v --cov=gh_release_install e2e 26 | 27 | examples: venv 28 | source venv/bin/activate; ./examples.sh 29 | -------------------------------------------------------------------------------- /gh_release_install/unpack.py: -------------------------------------------------------------------------------- 1 | from __future__ import annotations 2 | 3 | import bz2 4 | import logging 5 | from pathlib import Path 6 | from shutil import get_unpack_formats, register_unpack_format 7 | 8 | logger = logging.getLogger(__name__) 9 | 10 | 11 | def _unpack_bz2(filename, extract_dir): 12 | filename = Path(filename) 13 | extract_dir = Path(extract_dir) 14 | 15 | extracted = extract_dir / filename.stem 16 | 17 | with filename.open("rb") as filename_fd: 18 | with extracted.open("wb") as extracted_fd: 19 | extracted_fd.write(bz2.decompress(filename_fd.read())) 20 | 21 | 22 | def register_unpack_formats(): 23 | """Register custom unpack formats.""" 24 | logger.debug("Registering custom unpack formats") 25 | 26 | formats = get_unpack_formats() 27 | if "bz2" not in map(lambda x: x[0], formats): 28 | register_unpack_format("bz2", [".bz2"], _unpack_bz2, description="bz2 files") 29 | 30 | logger.debug("Unpack formats available: %s", formats) 31 | -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- 1 | name: CI 2 | 3 | on: 4 | push: 5 | branches: [main] 6 | pull_request: 7 | branches: [main] 8 | 9 | jobs: 10 | pre-commit: 11 | runs-on: ubuntu-latest 12 | 13 | steps: 14 | - uses: actions/checkout@v6 15 | 16 | - uses: actions/setup-python@v6 17 | with: 18 | python-version: 3.x 19 | 20 | - run: make install 21 | 22 | - uses: pre-commit/action@v3.0.1 23 | 24 | lint: 25 | runs-on: ubuntu-latest 26 | steps: 27 | - uses: actions/checkout@v6 28 | 29 | - uses: actions/setup-python@v6 30 | with: 31 | python-version: 3.x 32 | 33 | - run: make install 34 | - run: make lint 35 | 36 | test: 37 | runs-on: ubuntu-latest 38 | strategy: 39 | matrix: 40 | os: [ubuntu-latest] 41 | python-version: 42 | - "3.10" 43 | - "3.11" 44 | - "3.12" 45 | - "3.13" 46 | - "3.14" 47 | 48 | env: 49 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 50 | 51 | steps: 52 | - uses: actions/checkout@v6 53 | 54 | - uses: actions/setup-python@v6 55 | with: 56 | python-version: ${{ matrix.python-version }} 57 | 58 | - run: make install 59 | - run: make test 60 | - run: make e2e 61 | - run: make examples 62 | -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- 1 | [project] 2 | name = "gh_release_install" 3 | version = "0.13.1" 4 | description = "CLI helper to install Github releases on your system." 5 | readme = "README.md" 6 | authors = [{ name = "Joola", email = "jooola@users.noreply.github.com" }] 7 | classifiers = [ 8 | "Development Status :: 3 - Alpha", 9 | "Environment :: Console", 10 | "Programming Language :: Python", 11 | "Programming Language :: Python :: 3", 12 | "Programming Language :: Python :: 3.10", 13 | "Programming Language :: Python :: 3.11", 14 | "Programming Language :: Python :: 3.12", 15 | "Programming Language :: Python :: 3.13", 16 | "Programming Language :: Python :: 3.14", 17 | "Topic :: System :: Installation/Setup", 18 | "Topic :: System :: Software Distribution", 19 | ] 20 | 21 | requires-python = ">=3.10" 22 | dependencies = [ 23 | "requests>=2.32.3,<2.33", 24 | ] 25 | 26 | [project.optional-dependencies] 27 | dev = [ 28 | "black>=25.12,<25.13", 29 | "isort>=7,<7.1", 30 | "mypy>=1.0.0,<2.0", 31 | "pylint>=4,<4.1", 32 | "pytest>=9,<9.1", 33 | "pytest-cov>=7,<7.1", 34 | "pytest-xdist>=3.0.0,<4.0", 35 | "requests-mock>=1.9.3,<2.0", 36 | "types-requests>=2.31.0,<3.0", 37 | ] 38 | 39 | [project.scripts] 40 | gh-release-install = "gh_release_install.cli:run" 41 | 42 | [tool.setuptools] 43 | packages = ["gh_release_install"] 44 | 45 | [build-system] 46 | requires = ["setuptools"] 47 | build-backend = "setuptools.build_meta" 48 | 49 | [tool.pylint.messages_control] 50 | disable = [ 51 | "missing-module-docstring", 52 | "missing-function-docstring", 53 | "missing-class-docstring", 54 | ] 55 | 56 | [tool.isort] 57 | profile = "black" 58 | combine_as_imports = true 59 | add_imports = ["from __future__ import annotations"] 60 | -------------------------------------------------------------------------------- /.pre-commit-config.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | # See https://pre-commit.com for more information 3 | # See https://pre-commit.com/hooks.html for more hooks 4 | repos: 5 | - repo: https://github.com/pre-commit/pre-commit-hooks 6 | rev: v6.0.0 7 | hooks: 8 | - id: check-added-large-files 9 | - id: check-case-conflict 10 | - id: check-executables-have-shebangs 11 | - id: check-shebang-scripts-are-executable 12 | - id: check-symlinks 13 | - id: destroyed-symlinks 14 | 15 | - id: check-json 16 | - id: check-yaml 17 | - id: check-yaml 18 | - id: check-toml 19 | 20 | - id: check-merge-conflict 21 | - id: end-of-file-fixer 22 | - id: mixed-line-ending 23 | args: [--fix=lf] 24 | - id: trailing-whitespace 25 | 26 | - id: name-tests-test 27 | 28 | - repo: https://github.com/pre-commit/mirrors-prettier 29 | rev: v3.1.0 30 | hooks: 31 | - id: prettier 32 | files: \.(md|yml|yaml|json)$ 33 | exclude: (\.github/release-please-manifest\.json|CHANGELOG\.md)$ 34 | 35 | - repo: https://github.com/codespell-project/codespell 36 | rev: v2.4.1 37 | hooks: 38 | - id: codespell 39 | args: [--ignore-words=.codespellignore] 40 | 41 | - repo: https://github.com/asottile/pyupgrade 42 | rev: v3.21.2 43 | hooks: 44 | - id: pyupgrade 45 | args: [--py310-plus] 46 | 47 | - repo: local 48 | hooks: 49 | - id: format 50 | name: format 51 | description: Format code 52 | entry: make format 53 | language: system 54 | pass_filenames: false 55 | always_run: true 56 | 57 | - id: lint 58 | name: lint 59 | description: Lint code 60 | entry: make lint 61 | language: system 62 | pass_filenames: false 63 | always_run: true 64 | -------------------------------------------------------------------------------- /examples.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -eux 4 | 5 | error() { 6 | echo >&2 "error: $*" 7 | exit 1 8 | } 9 | 10 | command -v gh-release-install > /dev/null || error "gh-release-install command not found!" 11 | 12 | TMP_DIR=$(mktemp -d) 13 | pushd "$TMP_DIR" 14 | 15 | gh-release-install -vv \ 16 | 'prometheus/node_exporter' \ 17 | 'node_exporter-{version}.linux-amd64.tar.gz' \ 18 | --extract 'node_exporter-{version}.linux-amd64/node_exporter' \ 19 | "node_exporter" \ 20 | --version 'v1.2.2' \ 21 | --version-file '{destination}.version' \ 22 | --checksum 'sha256:sha256sums.txt' 23 | 24 | gh-release-install -vv \ 25 | 'mvdan/sh' \ 26 | 'shfmt_{tag}_linux_amd64' \ 27 | 'shfmt' \ 28 | --version-file '{destination}.version' 29 | 30 | gh-release-install -vv \ 31 | 'mvdan/sh' \ 32 | 'shfmt_{tag}_linux_amd64' \ 33 | 'shfmt' \ 34 | --version 'v3.3.1' \ 35 | --version-file '{destination}.version' 36 | 37 | gh-release-install -vv \ 38 | 'mvdan/sh' \ 39 | 'shfmt_{tag}_linux_amd64' \ 40 | '.' \ 41 | --version 'v3.3.1' \ 42 | --version-file '{destination}.version' 43 | 44 | gh-release-install -vv \ 45 | 'grafana/loki' \ 46 | 'loki-linux-amd64.zip' \ 47 | --extract 'loki-linux-amd64' \ 48 | 'loki' \ 49 | --version 'v2.2.1' \ 50 | --checksum 'sha256:SHA256SUMS' 51 | 52 | gh-release-install -vv \ 53 | 'grafana/loki' \ 54 | 'loki-linux-amd64.zip' \ 55 | --extract 'loki-linux-amd64' \ 56 | 'loki' \ 57 | --version 'v2.2.1' \ 58 | --checksum 'sha256:dacfb229dbc7064b1d6390173ea6963eb3c85f60dc2336081b0113476405c5aa' 59 | 60 | gh-release-install -vv \ 61 | 'restic/restic' \ 62 | 'restic_{version}_linux_amd64.bz2' \ 63 | --extract 'restic_{version}_linux_amd64' \ 64 | 'restic' \ 65 | --version 'v0.12.1' \ 66 | --checksum 'sha256:SHA256SUMS' 67 | 68 | popd 69 | rm -Rf "$TMP_DIR" 70 | -------------------------------------------------------------------------------- /tests/main_test.py: -------------------------------------------------------------------------------- 1 | # pylint: disable=protected-access 2 | 3 | from __future__ import annotations 4 | 5 | import json 6 | from pathlib import Path 7 | 8 | from gh_release_install import GhReleaseInstall 9 | 10 | 11 | def _load_json_fixture(path: str) -> dict: 12 | raw = Path(path).read_text(encoding="utf-8") 13 | return json.loads(raw) 14 | 15 | 16 | def test_installer_get_target_version_latest( 17 | requests_mock, 18 | installer: GhReleaseInstall, 19 | ): 20 | requests_mock.get( 21 | "https://api.github.com/repos/prometheus/prometheus/releases/latest", 22 | json=_load_json_fixture("tests/fixtures/gh_releases_latest.json"), 23 | ) 24 | installer._get_target_version() 25 | 26 | assert installer._target is not None 27 | assert installer._target.tag == "v2.28.1" 28 | assert installer._target.version == "2.28.1" 29 | 30 | 31 | def test_installer_get_target_version_fixed(installer: GhReleaseInstall): 32 | installer._version = "v2.28.1" 33 | installer._get_target_version() 34 | 35 | assert installer._target is not None 36 | assert installer._target.tag == "v2.28.1" 37 | assert installer._target.version == "2.28.1" 38 | 39 | 40 | def test_installer_get_local_version( 41 | tmp_path: Path, 42 | installer: GhReleaseInstall, 43 | ): 44 | installer._destination = str(tmp_path / "prometheus") 45 | installer._version_file = "{destination}.version" 46 | 47 | installer._get_local_version() 48 | 49 | assert installer._local is None 50 | 51 | 52 | def test_installer_get_local_version_exists( 53 | tmp_path: Path, 54 | installer: GhReleaseInstall, 55 | ): 56 | installer._destination = str(tmp_path / "prometheus") 57 | installer._version_file = "{destination}.version" 58 | 59 | tmp_version_file = installer.version_file 60 | assert tmp_version_file is not None 61 | tmp_version_file.write_text("v2.28.1") 62 | 63 | installer._get_local_version() 64 | 65 | assert installer._local is not None 66 | assert installer._local.tag == "v2.28.1" 67 | assert installer._local.version == "2.28.1" 68 | -------------------------------------------------------------------------------- /gh_release_install/checksum.py: -------------------------------------------------------------------------------- 1 | from __future__ import annotations 2 | 3 | import hashlib 4 | import logging 5 | import re 6 | from pathlib import Path 7 | 8 | __all__ = [ 9 | "compute_file_checksum", 10 | "find_checksum_in_file", 11 | "HASH_ALGORITHM", 12 | "is_hexdigest", 13 | "parse_checksum_option", 14 | ] 15 | 16 | logger = logging.getLogger(__name__) 17 | 18 | HASH_ALGORITHM = ("md5", "sha1", "sha224", "sha256", "sha384", "sha512") 19 | HASH_ALGORITHM_LENGTH = { 20 | "md5": 32, 21 | "sha1": 40, 22 | "sha224": 56, 23 | "sha256": 64, 24 | "sha384": 96, 25 | "sha512": 128, 26 | } 27 | 28 | 29 | def parse_checksum_option(value: str) -> tuple[str, str]: 30 | try: 31 | algorithm, checksum = value.split(":", maxsplit=1) 32 | except ValueError as exception: 33 | raise ValueError(f"invalid checksum option {value}") from exception 34 | 35 | if algorithm not in HASH_ALGORITHM: 36 | raise ValueError(f"invalid checksum algorithm {algorithm}") 37 | 38 | return algorithm, checksum 39 | 40 | 41 | HEXDIGEST_RE = re.compile(r"^[0-9a-fA-F]+$") 42 | 43 | 44 | def is_hexdigest(algorithm: str, value: str) -> bool: 45 | return bool( 46 | len(value) == HASH_ALGORITHM_LENGTH[algorithm] and HEXDIGEST_RE.search(value) 47 | ) 48 | 49 | 50 | def find_checksum_in_file(content: str, filename: str) -> str | None: 51 | lines = content.splitlines() 52 | for line in lines: 53 | match = re.search(r"^([0-9a-fA-F]+)\s+" + re.escape(filename) + r"$", line) 54 | if match is not None: 55 | return match.group(1) 56 | 57 | return None 58 | 59 | 60 | def compute_file_checksum(algorithm: str, filepath: Path) -> str: 61 | mixer = hashlib.new(algorithm, usedforsecurity=False) 62 | 63 | with filepath.open("rb") as file: 64 | while True: 65 | blob = file.read(8192) 66 | if not blob: 67 | break 68 | mixer.update(blob) 69 | 70 | digest = mixer.hexdigest() 71 | logger.debug("Computed %s digest '%s'", algorithm, digest) 72 | 73 | return digest 74 | -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- 1 | name: Release 2 | 3 | on: 4 | push: 5 | tags: ["v*.*.*"] 6 | branches: [main] 7 | pull_request: 8 | 9 | jobs: 10 | build: 11 | runs-on: ubuntu-latest 12 | steps: 13 | - uses: actions/checkout@v6 14 | 15 | - name: Set up Python 16 | uses: actions/setup-python@v6 17 | with: 18 | python-version: 3.x 19 | 20 | - name: Install dependencies 21 | run: pip install build twine 22 | 23 | - name: Build 24 | run: python3 -m build 25 | 26 | - name: Check 27 | run: twine check --strict dist/* 28 | 29 | - name: Upload packages artifact 30 | if: startsWith(github.ref, 'refs/tags') 31 | uses: actions/upload-artifact@v6 32 | with: 33 | name: python-packages 34 | path: dist/ 35 | 36 | publish: 37 | if: startsWith(github.ref, 'refs/tags') 38 | needs: [build] 39 | 40 | environment: 41 | name: pypi 42 | url: https://pypi.org/p/gh_release_install 43 | permissions: 44 | id-token: write 45 | 46 | runs-on: ubuntu-latest 47 | steps: 48 | - name: Download packages artifact 49 | uses: actions/download-artifact@v7 50 | with: 51 | name: python-packages 52 | path: dist/ 53 | 54 | - name: Publish packages to PyPI 55 | uses: pypa/gh-action-pypi-publish@v1.13.0 56 | 57 | publish-docker: 58 | if: startsWith(github.ref, 'refs/tags') 59 | 60 | runs-on: ubuntu-latest 61 | env: 62 | REGISTRY: ghcr.io 63 | IMAGE_NAME: ${{ github.repository }} 64 | 65 | steps: 66 | - name: Checkout repository 67 | uses: actions/checkout@v6 68 | 69 | - name: Login to the Container registry 70 | uses: docker/login-action@v3 71 | with: 72 | registry: ${{ env.REGISTRY }} 73 | username: ${{ github.actor }} 74 | password: ${{ secrets.GITHUB_TOKEN }} 75 | 76 | - name: Extract metadata (tags, labels) 77 | id: meta 78 | uses: docker/metadata-action@v5 79 | with: 80 | images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} 81 | 82 | - name: Build and push 83 | uses: docker/build-push-action@v6 84 | with: 85 | context: . 86 | push: true 87 | tags: ${{ steps.meta.outputs.tags }} 88 | labels: ${{ steps.meta.outputs.labels }} 89 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ## Custom .gitignore 2 | ################################################################################ 3 | 4 | ## Github Python .gitignore 5 | ## See https://github.com/github/gitignore/blob/master/Python.gitignore 6 | ################################################################################ 7 | 8 | # Byte-compiled / optimized / DLL files 9 | __pycache__/ 10 | *.py[cod] 11 | *$py.class 12 | 13 | # C extensions 14 | *.so 15 | 16 | # Distribution / packaging 17 | .Python 18 | build/ 19 | develop-eggs/ 20 | dist/ 21 | downloads/ 22 | eggs/ 23 | .eggs/ 24 | lib/ 25 | lib64/ 26 | parts/ 27 | sdist/ 28 | var/ 29 | wheels/ 30 | pip-wheel-metadata/ 31 | share/python-wheels/ 32 | *.egg-info/ 33 | .installed.cfg 34 | *.egg 35 | MANIFEST 36 | 37 | # PyInstaller 38 | # Usually these files are written by a python script from a template 39 | # before PyInstaller builds the exe, so as to inject date/other infos into it. 40 | *.manifest 41 | *.spec 42 | 43 | # Installer logs 44 | pip-log.txt 45 | pip-delete-this-directory.txt 46 | 47 | # Unit test / coverage reports 48 | htmlcov/ 49 | .tox/ 50 | .nox/ 51 | .coverage 52 | .coverage.* 53 | .cache 54 | nosetests.xml 55 | coverage.xml 56 | *.cover 57 | *.py,cover 58 | .hypothesis/ 59 | .pytest_cache/ 60 | 61 | # Translations 62 | *.mo 63 | *.pot 64 | 65 | # Django stuff: 66 | *.log 67 | local_settings.py 68 | db.sqlite3 69 | db.sqlite3-journal 70 | 71 | # Flask stuff: 72 | instance/ 73 | .webassets-cache 74 | 75 | # Scrapy stuff: 76 | .scrapy 77 | 78 | # Sphinx documentation 79 | docs/_build/ 80 | 81 | # PyBuilder 82 | target/ 83 | 84 | # Jupyter Notebook 85 | .ipynb_checkpoints 86 | 87 | # IPython 88 | profile_default/ 89 | ipython_config.py 90 | 91 | # pyenv 92 | .python-version 93 | 94 | # pipenv 95 | # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. 96 | # However, in case of collaboration, if having platform-specific dependencies or dependencies 97 | # having no cross-platform support, pipenv may install dependencies that don't work, or not 98 | # install all needed dependencies. 99 | #Pipfile.lock 100 | 101 | # PEP 582; used by e.g. github.com/David-OConnor/pyflow 102 | __pypackages__/ 103 | 104 | # Celery stuff 105 | celerybeat-schedule 106 | celerybeat.pid 107 | 108 | # SageMath parsed files 109 | *.sage.py 110 | 111 | # Environments 112 | .env 113 | .venv 114 | env/ 115 | venv/ 116 | ENV/ 117 | env.bak/ 118 | venv.bak/ 119 | 120 | # Spyder project settings 121 | .spyderproject 122 | .spyproject 123 | 124 | # Rope project settings 125 | .ropeproject 126 | 127 | # mkdocs documentation 128 | /site 129 | 130 | # mypy 131 | .mypy_cache/ 132 | .dmypy.json 133 | dmypy.json 134 | 135 | # Pyre type checker 136 | .pyre/ 137 | -------------------------------------------------------------------------------- /tests/checksum_test.py: -------------------------------------------------------------------------------- 1 | from __future__ import annotations 2 | 3 | from pathlib import Path 4 | 5 | import pytest 6 | 7 | from gh_release_install.checksum import ( 8 | compute_file_checksum, 9 | find_checksum_in_file, 10 | parse_checksum_option, 11 | ) 12 | 13 | here = Path(__file__).parent 14 | 15 | 16 | @pytest.mark.parametrize( 17 | "value, expected", 18 | [ 19 | ( 20 | "sha256:SHA256SUMS", 21 | ("sha256", "SHA256SUMS"), 22 | ), 23 | ( 24 | "sha256:https://example.org/SHA256SUMS", 25 | ("sha256", "https://example.org/SHA256SUMS"), 26 | ), 27 | ], 28 | ) 29 | def test_parse_checksum_option(value, expected): 30 | assert parse_checksum_option(value) == expected 31 | 32 | 33 | @pytest.mark.parametrize( 34 | "hash_name, expected", 35 | [ 36 | pytest.param( 37 | "md5", 38 | "3a49580590b7b002b74db6195c1a8e15", 39 | id="md5", 40 | ), 41 | pytest.param( 42 | "sha1", 43 | "382b1c013eec3d67ac05f9a3266ad1fa0707ce95", 44 | id="sha1", 45 | ), 46 | pytest.param( 47 | "sha224", 48 | "1d6195eb3abd996abdd72956809e5a1aff37673e97991aefaa20102a", 49 | id="sha224", 50 | ), 51 | pytest.param( 52 | "sha256", 53 | "484aedc04288b02f69eee1c20e98c588125fa960b43e5e129d5d36b93bb62072", 54 | id="sha256", 55 | ), 56 | pytest.param( 57 | "sha384", 58 | "b843bbe29c982d782ea95cd23b78569220d4635eeceb5c1572d00da3e0560dd5" 59 | "aaeb8799b76f8df457efa0fe47fd71f0", 60 | id="sha384", 61 | ), 62 | pytest.param( 63 | "sha512", 64 | "395347e504b64cd3e76c2741f2ca5bb3c1212b60b605c34cb6c69fea1db5831e" 65 | "299be54c87afa19582bd5834a1260bcc8055266f635d9fba00570309a99c0eb3", 66 | id="sha512", 67 | ), 68 | ], 69 | ) 70 | def test_compute_file_checksum(hash_name, expected): 71 | assert compute_file_checksum(hash_name, here / "fixtures/test.txt.bz2") == expected 72 | 73 | 74 | @pytest.mark.parametrize( 75 | "content, expected", 76 | [ 77 | pytest.param( 78 | "11111111111111111111111111111111 test.txt.bz2.suffix\n" 79 | "3a49580590b7b002b74db6195c1a8e15 test.txt.bz2\n" 80 | "11111111111111111111111111111111 prefix.test.txt.bz2\n", 81 | "3a49580590b7b002b74db6195c1a8e15", 82 | id="md5sum", 83 | ), 84 | pytest.param( 85 | "1111111111111111111111111111111111111111 test.txt.bz2.suffix\n" 86 | "382b1c013eec3d67ac05f9a3266ad1fa0707ce95 test.txt.bz2\n" 87 | "1111111111111111111111111111111111111111 prefix.test.txt.bz2\n", 88 | "382b1c013eec3d67ac05f9a3266ad1fa0707ce95", 89 | id="sha1sum", 90 | ), 91 | ], 92 | ) 93 | def test_find_checksum_in_file(content, expected): 94 | assert find_checksum_in_file(content, "test.txt.bz2") == expected 95 | -------------------------------------------------------------------------------- /gh_release_install/cli.py: -------------------------------------------------------------------------------- 1 | from __future__ import annotations 2 | 3 | import logging 4 | import sys 5 | from argparse import ( 6 | ArgumentDefaultsHelpFormatter, 7 | ArgumentParser, 8 | RawDescriptionHelpFormatter, 9 | ) 10 | 11 | from gh_release_install import GhReleaseInstall 12 | from gh_release_install.checksum import HASH_ALGORITHM 13 | 14 | logger = logging.getLogger(__name__) 15 | 16 | 17 | class ArgumentParserFormatter( 18 | RawDescriptionHelpFormatter, 19 | ArgumentDefaultsHelpFormatter, 20 | ): 21 | pass 22 | 23 | 24 | parser = ArgumentParser( 25 | description="Install GitHub release file on your system.", 26 | formatter_class=lambda prog: ArgumentParserFormatter(prog, width=80), 27 | ) 28 | parser.add_argument( 29 | "repository", 30 | metavar="REPOSITORY", 31 | help="Github REPOSITORY org/repo to get the release from.", 32 | ) 33 | parser.add_argument( 34 | "asset", 35 | metavar="ASSET", 36 | help="Release ASSET filename. May contain variables such as '{version}' or '{tag}'.", 37 | ) 38 | parser.add_argument( 39 | "--extract", 40 | metavar="", 41 | help="""Extract the from the release asset archive and install the 42 | extracted file instead. May contain variables such as '{version}' or 43 | '{tag}'.""", 44 | ) 45 | parser.add_argument( 46 | "destination", 47 | metavar="DESTINATION", 48 | help="""Path to save the downloaded file. If DESTINATION is a directory, the asset 49 | name will be used as filename in that directory. May contain variables such 50 | as '{version}' or '{tag}'.""", 51 | ) 52 | parser.add_argument( 53 | "--version", 54 | default="latest", 55 | metavar="", 56 | help="""Desired release version to install. When using 'latest' the installer will 57 | guess the latest version from the Github API.""", 58 | ) 59 | parser.add_argument( 60 | "--version-file", 61 | metavar="", 62 | help="""Track the version installed on the system using a file. May contain 63 | variables such as '{destination}'.""", 64 | ) 65 | parser.add_argument( 66 | "--checksum", 67 | metavar=":", 68 | help=f"""Asset checksum used to verify the downloaded ASSET. can be one of 69 | {', '.join(HASH_ALGORITHM)}. can either be the expected 70 | checksum, or the filename of an checksum file in the release assets.""", 71 | ) 72 | parser.add_argument( 73 | "--owner", 74 | metavar="", 75 | help="""Owner of the DESTINATION file. Ignored when not set.""", 76 | ) 77 | parser.add_argument( 78 | "--group", 79 | metavar="", 80 | help="""Group of the DESTINATION file. Defaults to .""", 81 | ) 82 | parser.add_argument( 83 | "--mode", 84 | metavar="", 85 | help="""Permissions of the DESTINATION file. Defaults to 755.""", 86 | ) 87 | parser.add_argument( 88 | "-v", 89 | "--verbose", 90 | dest="verbosity", 91 | action="count", 92 | default=0, 93 | help="Increase the verbosity.", 94 | ) 95 | parser.add_argument( 96 | "-q", 97 | "--quiet", 98 | dest="verbosity", 99 | action="store_const", 100 | const=-1, 101 | help="Disable logging.", 102 | ) 103 | parser.epilog = """ 104 | template variables: 105 | {tag} Release tag name. 106 | {version} Release tag name without leading 'v'. 107 | {destination} DESTINATION path, including the asset filename if path 108 | is a directory. 109 | 110 | examples: 111 | gh-release-install 'mvdan/sh' \\ 112 | 'shfmt_{tag}_linux_amd64' \\ 113 | '/usr/local/bin/shfmt' \\ 114 | --version 'v3.3.1' 115 | 116 | gh-release-install 'prometheus/prometheus' \\ 117 | 'prometheus-{version}.linux-amd64.tar.gz' \\ 118 | --extract 'prometheus-{version}.linux-amd64/prometheus' \\ 119 | '/usr/local/bin/prometheus' \\ 120 | --version-file '{destination}.version' \\ 121 | --checksum 'sha256:sha256sums.txt' 122 | """ 123 | 124 | 125 | def run(): 126 | args = parser.parse_args() 127 | 128 | if args.verbosity is not None and args.verbosity >= 0: 129 | levels = [logging.ERROR, logging.INFO, logging.DEBUG] 130 | logging.basicConfig( 131 | level=levels[min(args.verbosity, 2)], 132 | format="%(levelname)s:\t%(message)s", 133 | ) 134 | 135 | installer = GhReleaseInstall( 136 | repository=args.repository, 137 | asset=args.asset, 138 | destination=args.destination, 139 | extract=args.extract, 140 | version=args.version, 141 | version_file=args.version_file, 142 | checksum=args.checksum, 143 | owner=args.owner, 144 | group=args.group, 145 | mode=args.mode, 146 | ) 147 | 148 | try: 149 | installer.run() 150 | # pylint: disable=broad-except 151 | except Exception as exception: 152 | logger.exception(exception) 153 | sys.exit(1) 154 | -------------------------------------------------------------------------------- /e2e/install_test.py: -------------------------------------------------------------------------------- 1 | from __future__ import annotations 2 | 3 | from os import environ 4 | from pathlib import Path 5 | from subprocess import check_output 6 | 7 | import pytest 8 | 9 | from gh_release_install import GhReleaseInstall 10 | 11 | PARAMS_ARGS = "destination, checksum, kwargs, version_command, version_output" 12 | PARAMS = [ 13 | pytest.param( 14 | "node_exporter", 15 | "sha256:sha256sums.txt", 16 | { 17 | "repository": "prometheus/node_exporter", 18 | "asset": "node_exporter-{version}.linux-amd64.tar.gz", 19 | "extract": "node_exporter-{version}.linux-amd64/node_exporter", 20 | "version": "v1.2.2", 21 | "owner": environ.get("USER", "root"), 22 | "group": environ.get("USER", "root"), 23 | }, 24 | "--version", 25 | "node_exporter, version 1.2.2 (branch: HEAD, revision: 26645363b486e12be40af7ce4fc91e731a33104e)\n" 26 | " build user: root@b9cb4aa2eb17\n" 27 | " build date: 20210806-13:44:18\n" 28 | " go version: go1.16.7\n" 29 | " platform: linux/amd64\n", 30 | id="prometheus/node_exporter", 31 | ), 32 | pytest.param( 33 | "shfmt", 34 | None, 35 | { 36 | "repository": "mvdan/sh", 37 | "asset": "shfmt_{tag}_linux_amd64", 38 | "version": "v3.3.1", 39 | }, 40 | "-version", 41 | "v3.3.1\n", 42 | id="mvdan/sh", 43 | ), 44 | pytest.param( 45 | "loki", 46 | "sha256:SHA256SUMS", 47 | { 48 | "repository": "grafana/loki", 49 | "asset": "loki-linux-amd64.zip", 50 | "extract": "loki-linux-amd64", 51 | "version": "v2.2.1", 52 | }, 53 | "-version", 54 | "loki, version 2.2.1 (branch: HEAD, revision: babea82e)\n" 55 | " build user: root@e2d295b84e26\n" 56 | " build date: 2021-04-06T00:52:41Z\n" 57 | " go version: go1.15.3\n" 58 | " platform: linux/amd64\n", 59 | id="grafana/loki", 60 | ), 61 | pytest.param( 62 | "restic", 63 | "sha256:SHA256SUMS", 64 | { 65 | "repository": "restic/restic", 66 | "asset": "restic_{version}_linux_amd64.bz2", 67 | "extract": "restic_{version}_linux_amd64", 68 | "version": "v0.12.1", 69 | }, 70 | "version", 71 | "restic 0.12.1 compiled with go1.16.6 on linux/amd64\n", 72 | id="restic/restic", 73 | ), 74 | ] 75 | 76 | 77 | def get_version(destination_file: Path, version_command: str): 78 | return check_output([destination_file, version_command], text=True) 79 | 80 | 81 | @pytest.mark.parametrize(PARAMS_ARGS, PARAMS) 82 | def test_installer( # pylint: disable=unused-argument 83 | tmp_path: Path, 84 | destination, 85 | checksum, 86 | kwargs, 87 | version_command, 88 | version_output, 89 | ): 90 | destination_file = tmp_path / destination 91 | 92 | installer = GhReleaseInstall(destination=destination_file, **kwargs) 93 | installer.run() 94 | 95 | assert destination_file.exists() 96 | assert destination_file.is_file() 97 | assert get_version(destination_file, version_command) == version_output 98 | 99 | 100 | @pytest.mark.parametrize(PARAMS_ARGS, PARAMS) 101 | def test_installer_with_version_file( 102 | tmp_path: Path, 103 | destination, 104 | checksum, 105 | kwargs, 106 | version_command, 107 | version_output, 108 | ): 109 | kwargs["version_file"] = "{destination}.version" 110 | 111 | test_installer( 112 | tmp_path, 113 | destination, 114 | checksum, 115 | kwargs, 116 | version_command, 117 | version_output, 118 | ) 119 | 120 | version_file = tmp_path / (destination + ".version") 121 | assert version_file.is_file() 122 | assert version_file.read_text() == kwargs["version"] 123 | 124 | 125 | @pytest.mark.parametrize(PARAMS_ARGS, PARAMS) 126 | def test_installer_to_dir( # pylint: disable=unused-argument 127 | tmp_path: Path, 128 | destination, 129 | checksum, 130 | kwargs, 131 | version_command, 132 | version_output, 133 | ): 134 | installer = GhReleaseInstall(destination=tmp_path, **kwargs) 135 | installer.run() 136 | 137 | assert installer.destination.exists() 138 | assert installer.destination.is_file() 139 | assert get_version(installer.destination, version_command) == version_output 140 | 141 | 142 | @pytest.mark.parametrize(PARAMS_ARGS, PARAMS) 143 | def test_installer_with_checksum( 144 | tmp_path: Path, 145 | destination, 146 | checksum, 147 | kwargs, 148 | version_command, 149 | version_output, 150 | ): 151 | if checksum is None: 152 | pytest.skip() 153 | 154 | kwargs["checksum"] = checksum 155 | test_installer( 156 | tmp_path, 157 | destination, 158 | checksum, 159 | kwargs, 160 | version_command, 161 | version_output, 162 | ) 163 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Github release installer 2 | 3 | [![CI](https://github.com/jooola/gh-release-install/actions/workflows/ci.yml/badge.svg)](https://github.com/jooola/gh-release-install/actions/workflows/ci.yml) 4 | [![PyPI Python Versions](https://img.shields.io/pypi/pyversions/gh-release-install.svg)](https://pypi.org/project/gh-release-install/) 5 | [![PyPI Package Version](https://img.shields.io/pypi/v/gh-release-install.svg)](https://pypi.org/project/gh-release-install/) 6 | 7 | `gh-release-install` is a CLI helper to install Github releases on your system. 8 | It can be used for pretty much anything, to install a formatter in your CI, deploy 9 | some binary using an orcherstration tool, or on your desktop. 10 | 11 | This project was mainly created to... 12 | 13 | ```sh 14 | # ...turn this mess: 15 | wget --quiet --output-document=- "https://github.com/koalaman/shellcheck/releases/download/v0.7.1/shellcheck-v0.7.1.linux.x86_64.tar.xz" \ 16 | | tar --extract --xz --directory=/usr/local/bin --strip-components=1 --wildcards 'shellcheck*/shellcheck' \ 17 | && chmod +x /usr/local/bin/shellcheck 18 | 19 | wget --quiet --output-document=/usr/local/bin/shfmt "https://github.com/mvdan/sh/releases/download/v3.2.1/shfmt_v3.2.1_linux_amd64" \ 20 | && chmod +x /usr/local/bin/shfmt 21 | 22 | # Into this: 23 | pip3 install gh-release-install 24 | 25 | gh-release-install \ 26 | "koalaman/shellcheck" \ 27 | "shellcheck-{tag}.linux.x86_64.tar.xz" --extract "shellcheck-{tag}/shellcheck" \ 28 | "/usr/bin/shellcheck" 29 | 30 | gh-release-install \ 31 | "mvdan/sh" \ 32 | "shfmt_{tag}_linux_amd64" \ 33 | "/usr/bin/shfmt" 34 | ``` 35 | 36 | Features: 37 | 38 | - Download releases from Github. 39 | - Extract zip or tarball on the fly. 40 | - Pin to a desired version or get the `latest` version. 41 | - Keep track of the local tools version using a version file. 42 | 43 | ## Installation 44 | 45 | Install the package from pip: 46 | 47 | ```sh 48 | pip install gh-release-install 49 | gh-release-install --help 50 | ``` 51 | 52 | Or with with pipx: 53 | 54 | ```sh 55 | pipx install gh-release-install 56 | gh-release-install --help 57 | ``` 58 | 59 | ## Usage 60 | 61 | ```sh 62 | usage: gh-release-install [-h] [--extract ] [--version ] 63 | [--version-file ] 64 | [--checksum :] [-v] [-q] 65 | REPOSITORY ASSET DESTINATION 66 | 67 | Install GitHub release file on your system. 68 | 69 | positional arguments: 70 | REPOSITORY Github REPOSITORY org/repo to get the release from. 71 | ASSET Release ASSET filename. May contain variables such as 72 | '{version}' or '{tag}'. 73 | DESTINATION Path to save the downloaded file. If DESTINATION is a 74 | directory, the asset name will be used as filename in 75 | that directory. May contain variables such as 76 | '{version}' or '{tag}'. 77 | 78 | optional arguments: 79 | -h, --help show this help message and exit 80 | --extract Extract the from the release asset archive 81 | and install the extracted file instead. May contain 82 | variables such as '{version}' or '{tag}'. (default: 83 | None) 84 | --version Desired release version to install. When using 'latest' 85 | the installer will guess the latest version from the 86 | Github API. (default: latest) 87 | --version-file 88 | Track the version installed on the system using a file. 89 | May contain variables such as '{destination}'. (default: 90 | None) 91 | --checksum : 92 | Asset checksum used to verify the downloaded ASSET. 93 | can be one of md5, sha1, sha224, sha256, sha384, 94 | sha512. can either be the expected 95 | checksum, or the filename of an checksum file in the 96 | release assets. (default: None) 97 | -v, --verbose Increase the verbosity. (default: 0) 98 | -q, --quiet Disable logging. (default: None) 99 | 100 | template variables: 101 | {tag} Release tag name. 102 | {version} Release tag name without leading 'v'. 103 | {destination} DESTINATION path, including the asset filename if path 104 | is a directory. 105 | 106 | examples: 107 | gh-release-install 'mvdan/sh' \ 108 | 'shfmt_{tag}_linux_amd64' \ 109 | '/usr/local/bin/shfmt' \ 110 | --version 'v3.3.1' 111 | 112 | gh-release-install 'prometheus/prometheus' \ 113 | 'prometheus-{version}.linux-amd64.tar.gz' \ 114 | --extract 'prometheus-{version}.linux-amd64/prometheus' \ 115 | '/usr/local/bin/prometheus' \ 116 | --version-file '{destination}.version' \ 117 | --checksum 'sha256:sha256sums.txt' 118 | 119 | ``` 120 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | 3 | ## [0.13.1](https://github.com/jooola/gh-release-install/compare/v0.13.0...v0.13.1) (2025-11-02) 4 | 5 | 6 | ### Bug Fixes 7 | 8 | * handle file not found error when extracting from an archive ([#236](https://github.com/jooola/gh-release-install/issues/236)) ([ea63c7a](https://github.com/jooola/gh-release-install/commit/ea63c7aebb37d125a248da39b83abd6b25655cda)) 9 | 10 | ## [0.13.0](https://github.com/jooola/gh-release-install/compare/v0.12.0...v0.13.0) (2025-11-01) 11 | 12 | 13 | ### Features 14 | 15 | * set destination owner group or mode ([#233](https://github.com/jooola/gh-release-install/issues/233)) ([faf60bf](https://github.com/jooola/gh-release-install/commit/faf60bf746529bbad33a7f0dd73f45d066ba1b49)) 16 | 17 | ## [0.12.0](https://github.com/jooola/gh-release-install/compare/v0.11.2...v0.12.0) (2025-10-04) 18 | 19 | 20 | ### Features 21 | 22 | * drop support for python3.8 ([#222](https://github.com/jooola/gh-release-install/issues/222)) ([b22ef95](https://github.com/jooola/gh-release-install/commit/b22ef95f44b581d59bca40001779798fc6134fce)) 23 | * drop support for python3.9 ([#225](https://github.com/jooola/gh-release-install/issues/225)) ([dceec28](https://github.com/jooola/gh-release-install/commit/dceec2861d32463d96260e644e2a2581340ef7b3)) 24 | 25 | 26 | ### Bug Fixes 27 | 28 | * unlink destination before replacing it ([#220](https://github.com/jooola/gh-release-install/issues/220)) ([7e079a2](https://github.com/jooola/gh-release-install/commit/7e079a22c05f9dfd3973c436557cd3aeb0edc774)) 29 | 30 | ## [0.11.2](https://github.com/jooola/gh-release-install/compare/v0.11.1...v0.11.2) (2024-08-11) 31 | 32 | 33 | ### Bug Fixes 34 | 35 | * **deps:** update dependency requests to >=2.32.3, <2.33 ([#178](https://github.com/jooola/gh-release-install/issues/178)) ([08f1d6a](https://github.com/jooola/gh-release-install/commit/08f1d6a8e11b5aa6f62e6058c692a5770640acaa)) 36 | 37 | ## [0.11.1](https://github.com/jooola/gh-release-install/compare/v0.11.0...v0.11.1) (2023-12-18) 38 | 39 | 40 | ### Documentation 41 | 42 | * add support for python 3.12 ([e1f034b](https://github.com/jooola/gh-release-install/commit/e1f034b10609cf9c9df231cc328308a3de4e1ab8)) 43 | * regenerate changelog ([a827693](https://github.com/jooola/gh-release-install/commit/a8276937d36006881b36b246463ece15df82fe53)) 44 | 45 | 46 | 47 | ## [v0.11.0](https://github.com/jooola/gh-release-install/compare/v0.10.1...v0.11.0) (2023-05-30) 48 | 49 | ### :rocket: Features 50 | 51 | - drop python 3.7 52 | 53 | 54 | 55 | ## [v0.10.1](https://github.com/jooola/gh-release-install/compare/v0.10.0...v0.10.1) (2023-05-30) 56 | 57 | 58 | 59 | ## [v0.10.0](https://github.com/jooola/gh-release-install/compare/v0.9.0...v0.10.0) (2023-02-08) 60 | 61 | ### :bug: Bug Fixes 62 | 63 | - install when orphan version file is up to date 64 | 65 | ### :gear: CI/CD 66 | 67 | - use GITHUB_TOKEN to prevent rate limits ([#104](https://github.com/jooola/gh-release-install/issues/104)) 68 | - use python 3.10 as stable version 69 | - test python3.11 70 | 71 | 72 | 73 | ## [v0.9.0](https://github.com/jooola/gh-release-install/compare/v0.8.0...v0.9.0) (2022-10-01) 74 | 75 | ### :bug: Bug Fixes 76 | 77 | - only export GhReleaseInstall 78 | - add docker entrypoint 79 | - reduce docker image size 80 | 81 | ### :rocket: Features 82 | 83 | - allow checksum verification 84 | - use python3-alpine variant 85 | 86 | 87 | 88 | ## [v0.8.0](https://github.com/jooola/gh-release-install/compare/v0.7.0...v0.8.0) (2022-09-17) 89 | 90 | ### :bug: Bug Fixes 91 | 92 | - allow older version of requests 93 | - reduce logging 94 | - verbosity forced to debug when enabled 95 | 96 | ### :gear: CI/CD 97 | 98 | - widen python dependencies range 99 | - run tests on examples 100 | 101 | ### :rocket: Features 102 | 103 | - replace click with argparse 104 | 105 | 106 | 107 | ## [v0.7.0](https://github.com/jooola/gh-release-install/compare/v0.6.2...v0.7.0) (2022-09-16) 108 | 109 | ### :rocket: Features 110 | 111 | - replace custom logger with logging 112 | 113 | 114 | 115 | ## [v0.6.2](https://github.com/jooola/gh-release-install/compare/v0.6.1...v0.6.2) (2022-07-20) 116 | 117 | ### :rocket: Features 118 | 119 | - create docker image 120 | 121 | 122 | 123 | ## [v0.6.1](https://github.com/jooola/gh-release-install/compare/v0.6.0...v0.6.1) (2022-07-10) 124 | 125 | 126 | 127 | ## [v0.6.0](https://github.com/jooola/gh-release-install/compare/v0.5.0...v0.6.0) (2022-07-10) 128 | 129 | ### :gear: CI/CD 130 | 131 | - use composite action 132 | - create virtualenvs in project 133 | - improve poetry caching 134 | - add python 3.10 testing 135 | - remove release drafter 136 | 137 | ### :rocket: Features 138 | 139 | - use GITHUB_TOKEN if present in env 140 | - drop python 3.6 support 141 | 142 | 143 | 144 | ## [v0.5.0](https://github.com/jooola/gh-release-install/compare/v0.4.2...v0.5.0) (2021-11-18) 145 | 146 | ### :gear: CI/CD 147 | 148 | - python matchers ([#19](https://github.com/jooola/gh-release-install/issues/19)) 149 | 150 | ### :rocket: Features 151 | 152 | - add support for installing to directories ([#21](https://github.com/jooola/gh-release-install/issues/21)) 153 | 154 | 155 | 156 | ## [v0.4.2](https://github.com/jooola/gh-release-install/compare/v0.4.1...v0.4.2) (2021-08-25) 157 | 158 | ### :gear: CI/CD 159 | 160 | - setup caching 161 | - publish at the end of workflow 162 | 163 | 164 | 165 | ## [v0.4.1](https://github.com/jooola/gh-release-install/compare/v0.4.0...v0.4.1) (2021-08-24) 166 | 167 | ### :gear: CI/CD 168 | 169 | - missing release drafter config 170 | - setup release drafter 171 | 172 | ### :rocket: Features 173 | 174 | - add support for bz2 compressed files ([#9](https://github.com/jooola/gh-release-install/issues/9)) 175 | 176 | 177 | 178 | ## [v0.4.0](https://github.com/jooola/gh-release-install/compare/v0.3.2...v0.4.0) (2021-08-24) 179 | 180 | 181 | 182 | ## [v0.3.2](https://github.com/jooola/gh-release-install/compare/v0.3.1...v0.3.2) (2021-08-09) 183 | 184 | ### :bug: Bug Fixes 185 | 186 | - required python version missing 3.6 187 | 188 | 189 | 190 | ## [v0.3.1](https://github.com/jooola/gh-release-install/compare/v0.3.0...v0.3.1) (2021-08-09) 191 | 192 | ### :gear: CI/CD 193 | 194 | - add CI publish workflow 195 | 196 | 197 | 198 | ## [v0.3.0](https://github.com/jooola/gh-release-install/compare/v0.2.0...v0.3.0) (2021-08-09) 199 | 200 | ### :rocket: Features 201 | 202 | - add verbosity tweaking feature ([#5](https://github.com/jooola/gh-release-install/issues/5)) 203 | - use shutils unpack_archive instead of custom logic 204 | 205 | 206 | 207 | ## v0.2.0 (2021-08-08) 208 | 209 | ### :bug: Bug Fixes 210 | 211 | - log levels in wrong order 212 | 213 | ### :gear: CI/CD 214 | 215 | - enhance CI 216 | - add basic CI 217 | -------------------------------------------------------------------------------- /gh_release_install/main.py: -------------------------------------------------------------------------------- 1 | from __future__ import annotations 2 | 3 | import logging 4 | import sys 5 | from os import environ 6 | from pathlib import Path 7 | from shutil import chown, move, unpack_archive 8 | from tempfile import TemporaryDirectory 9 | 10 | from requests import Session 11 | 12 | from .checksum import ( 13 | compute_file_checksum, 14 | find_checksum_in_file, 15 | is_hexdigest, 16 | parse_checksum_option, 17 | ) 18 | from .unpack import register_unpack_formats 19 | 20 | __all__ = ["GhReleaseInstall"] 21 | 22 | LATEST = "latest" 23 | 24 | logger = logging.getLogger(__name__) 25 | logger.addHandler(logging.NullHandler()) 26 | 27 | 28 | # pylint: disable=too-few-public-methods 29 | class Release: 30 | def __init__(self, tag: str) -> None: 31 | self.tag = tag 32 | 33 | @property 34 | def version(self) -> str: 35 | return self.tag.strip("v") 36 | 37 | 38 | def get_latest_tag(session: Session, repository: str) -> str: 39 | url = f"https://api.github.com/repos/{repository}/releases/latest" 40 | with session.get(url) as res: 41 | res.raise_for_status() 42 | body = res.json() 43 | 44 | return body["tag_name"] 45 | 46 | 47 | # pylint: disable=too-many-instance-attributes 48 | class GhReleaseInstall: 49 | _target: Release | None = None 50 | _local: Release | None = None 51 | _session: Session 52 | 53 | # pylint: disable=too-many-arguments,too-many-positional-arguments 54 | def __init__( 55 | self, 56 | repository: str, 57 | asset: str, 58 | destination: str | Path, 59 | extract: str | None = None, 60 | version: str = LATEST, 61 | version_file: str | None = None, 62 | checksum: str | None = None, 63 | owner: str | None = None, 64 | group: str | None = None, 65 | mode: str | None = None, 66 | ): 67 | self._repository = repository 68 | self._asset = asset 69 | self._destination = str(destination) 70 | self._extract = extract 71 | self._version = version 72 | self._version_file = version_file 73 | 74 | self.checksum_algorithm, self.checksum = None, None 75 | if checksum is not None: 76 | self.checksum_algorithm, self.checksum = parse_checksum_option(checksum) 77 | 78 | self._owner = owner 79 | self._group = group 80 | self._mode = mode 81 | 82 | self._session = Session() 83 | if "GITHUB_TOKEN" in environ: 84 | logger.debug("Loading GITHUB_TOKEN from env") 85 | github_token = environ.get("GITHUB_TOKEN") 86 | self._session.headers.update({"Authorization": f"token {github_token}"}) 87 | 88 | register_unpack_formats() 89 | 90 | def _resolve_path(self, path: str, **variables: str) -> str: 91 | if self._target is not None: 92 | variables["tag"] = self._target.tag 93 | variables["version"] = self._target.version 94 | 95 | return path.format(**variables) 96 | 97 | @property 98 | def asset(self) -> str: 99 | return self._resolve_path(self._asset) 100 | 101 | @property 102 | def destination(self) -> Path: 103 | destination = Path(self._resolve_path(self._destination)) 104 | 105 | if destination.is_dir(): 106 | return destination / self.asset 107 | 108 | return destination 109 | 110 | @property 111 | def extract(self) -> str | None: 112 | if self._extract is None: 113 | return None 114 | return self._resolve_path(self._extract) 115 | 116 | @property 117 | def version_file(self) -> Path | None: 118 | if self._version_file is None: 119 | return None 120 | 121 | return Path( 122 | self._resolve_path( 123 | self._version_file, 124 | destination=str(self.destination), 125 | ) 126 | ) 127 | 128 | def _github_asset_url(self, asset: str) -> str: 129 | assert self._target is not None 130 | return f"https://github.com/{self._repository}/releases/download/{self._target.tag}/{asset}" 131 | 132 | def _get_target_version(self): 133 | """ 134 | If not provided, get latest tag/version from the Github repository. 135 | """ 136 | if self._version == LATEST: 137 | self._target = Release(get_latest_tag(self._session, self._repository)) 138 | else: 139 | self._target = Release(self._version) 140 | 141 | logger.debug("Target version is '%s'", self._target.version) 142 | 143 | def _get_local_version(self): 144 | """ 145 | Get local tag / version from possible version file. 146 | """ 147 | if self.version_file is not None and self.version_file.is_file(): 148 | self._local = Release(self.version_file.read_text(encoding="utf-8")) 149 | logger.debug("Local version is '%s'", self._local.version) 150 | 151 | def _get_checksum_from_url(self, url: str) -> str | None: 152 | """ 153 | Download checksum file from the provided url and extract the checksum. 154 | """ 155 | with self._session.get(url) as res: 156 | if res.status_code == 404: 157 | return None 158 | res.raise_for_status() 159 | 160 | return find_checksum_in_file(res.text, self.asset) 161 | 162 | def _verify_checksum(self, asset_file: Path) -> bool: 163 | """ 164 | Verify asset checksum, first check against a possible hand written digest, 165 | then check against a digest from a asset checksum file. 166 | """ 167 | assert self.checksum is not None 168 | assert self.checksum_algorithm is not None 169 | 170 | local_checksum = compute_file_checksum(self.checksum_algorithm, asset_file) 171 | 172 | # We hope nobody will ever pass a asset filename that matches this check 173 | if is_hexdigest(self.checksum_algorithm, self.checksum): 174 | return local_checksum == self.checksum 175 | 176 | target_checksum_url = self._github_asset_url(self.checksum) 177 | target_checksum = self._get_checksum_from_url(target_checksum_url) 178 | return local_checksum == target_checksum 179 | 180 | def _download_release_asset(self, tmp_dir: Path): 181 | """ 182 | Download target version release file in a temporary file. 183 | """ 184 | url = self._github_asset_url(self.asset) 185 | with self._session.get(url, stream=True) as res: 186 | res.raise_for_status() 187 | tmp_file = tmp_dir / self.asset 188 | 189 | logger.debug("Saving asset to '%s'", tmp_file) 190 | with tmp_file.open("wb") as tmp_fd: 191 | for chunk in res.iter_content(chunk_size=2048): 192 | tmp_fd.write(chunk) 193 | 194 | return tmp_file 195 | 196 | def _extract_release_asset(self, tmp_dir: Path, asset_file: Path) -> Path: 197 | """ 198 | Extract downloaded release archive. 199 | """ 200 | unpack_archive(asset_file, tmp_dir) 201 | assert self.extract is not None 202 | return tmp_dir / self.extract 203 | 204 | def run(self): 205 | self._get_target_version() 206 | self._get_local_version() 207 | 208 | if self._local is not None: 209 | if not self.destination.is_file(): 210 | logger.warning( 211 | "Local version is referring to an inexistent asset '%s'", 212 | self.destination, 213 | ) 214 | elif self._target.version == self._local.version: 215 | logger.info("Target version is already installed") 216 | sys.exit(0) 217 | 218 | with TemporaryDirectory(prefix="gh-release-installer") as tmp_dir: 219 | tmp_dir = Path(tmp_dir) 220 | asset_file = self._download_release_asset(tmp_dir) 221 | 222 | if self.checksum is not None: 223 | if not self._verify_checksum(asset_file): 224 | logger.error("Checksum verification failed") 225 | sys.exit(1) 226 | logger.info("Checksum verification succeeded") 227 | 228 | if self.extract is not None: 229 | asset_file = self._extract_release_asset(tmp_dir, asset_file) 230 | logger.info("Extracted archive to '%s'", asset_file) 231 | 232 | if not asset_file.exists(): 233 | logger.error( 234 | "Asset '%s' not found in archive", 235 | asset_file.relative_to(tmp_dir), 236 | ) 237 | sys.exit(1) 238 | 239 | if self.destination.is_file(): 240 | self.destination.unlink() 241 | 242 | move(asset_file, self.destination) 243 | 244 | if self._mode is not None: 245 | self.destination.chmod(int(self._mode, 8)) 246 | else: 247 | self.destination.chmod(0o755) 248 | 249 | if self._owner is not None: 250 | chown(self.destination, self._owner, self._group or self._owner) 251 | 252 | logger.info("Installed file to '%s'", self.destination) 253 | 254 | # Save to local tag/version file 255 | if self.version_file is not None: 256 | self.version_file.write_text(self._target.tag, encoding="utf-8") 257 | logger.info("Saved version file to '%s'", self.version_file) 258 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /tests/fixtures/gh_releases_latest.json: -------------------------------------------------------------------------------- 1 | { 2 | "url": "https://api.github.com/repos/prometheus/prometheus/releases/45574049", 3 | "assets_url": "https://api.github.com/repos/prometheus/prometheus/releases/45574049/assets", 4 | "upload_url": "https://uploads.github.com/repos/prometheus/prometheus/releases/45574049/assets{?name,label}", 5 | "html_url": "https://github.com/prometheus/prometheus/releases/tag/v2.28.1", 6 | "id": 45574049, 7 | "author": { 8 | "login": "prombot", 9 | "id": 18470668, 10 | "node_id": "MDQ6VXNlcjE4NDcwNjY4", 11 | "avatar_url": "https://avatars.githubusercontent.com/u/18470668?v=4", 12 | "gravatar_id": "", 13 | "url": "https://api.github.com/users/prombot", 14 | "html_url": "https://github.com/prombot", 15 | "followers_url": "https://api.github.com/users/prombot/followers", 16 | "following_url": "https://api.github.com/users/prombot/following{/other_user}", 17 | "gists_url": "https://api.github.com/users/prombot/gists{/gist_id}", 18 | "starred_url": "https://api.github.com/users/prombot/starred{/owner}{/repo}", 19 | "subscriptions_url": "https://api.github.com/users/prombot/subscriptions", 20 | "organizations_url": "https://api.github.com/users/prombot/orgs", 21 | "repos_url": "https://api.github.com/users/prombot/repos", 22 | "events_url": "https://api.github.com/users/prombot/events{/privacy}", 23 | "received_events_url": "https://api.github.com/users/prombot/received_events", 24 | "type": "User", 25 | "site_admin": false 26 | }, 27 | "node_id": "MDc6UmVsZWFzZTQ1NTc0MDQ5", 28 | "tag_name": "v2.28.1", 29 | "target_commitish": "b0944590a1c9a6b35dc5a696869f75f422b107a1", 30 | "name": "2.28.1 / 2021-07-01", 31 | "draft": false, 32 | "prerelease": false, 33 | "created_at": "2021-07-01T13:38:23Z", 34 | "published_at": "2021-07-01T18:19:38Z", 35 | "assets": [ 36 | { 37 | "url": "https://api.github.com/repos/prometheus/prometheus/releases/assets/39565214", 38 | "id": 39565214, 39 | "node_id": "MDEyOlJlbGVhc2VBc3NldDM5NTY1MjE0", 40 | "name": "prometheus-2.28.1.darwin-amd64.tar.gz", 41 | "label": "", 42 | "uploader": { 43 | "login": "prombot", 44 | "id": 18470668, 45 | "node_id": "MDQ6VXNlcjE4NDcwNjY4", 46 | "avatar_url": "https://avatars.githubusercontent.com/u/18470668?v=4", 47 | "gravatar_id": "", 48 | "url": "https://api.github.com/users/prombot", 49 | "html_url": "https://github.com/prombot", 50 | "followers_url": "https://api.github.com/users/prombot/followers", 51 | "following_url": "https://api.github.com/users/prombot/following{/other_user}", 52 | "gists_url": "https://api.github.com/users/prombot/gists{/gist_id}", 53 | "starred_url": "https://api.github.com/users/prombot/starred{/owner}{/repo}", 54 | "subscriptions_url": "https://api.github.com/users/prombot/subscriptions", 55 | "organizations_url": "https://api.github.com/users/prombot/orgs", 56 | "repos_url": "https://api.github.com/users/prombot/repos", 57 | "events_url": "https://api.github.com/users/prombot/events{/privacy}", 58 | "received_events_url": "https://api.github.com/users/prombot/received_events", 59 | "type": "User", 60 | "site_admin": false 61 | }, 62 | "content_type": "application/gzip", 63 | "state": "uploaded", 64 | "size": 71244430, 65 | "download_count": 2370, 66 | "created_at": "2021-07-01T16:36:12Z", 67 | "updated_at": "2021-07-01T16:36:14Z", 68 | "browser_download_url": "https://github.com/prometheus/prometheus/releases/download/v2.28.1/prometheus-2.28.1.darwin-amd64.tar.gz" 69 | }, 70 | { 71 | "url": "https://api.github.com/repos/prometheus/prometheus/releases/assets/39565218", 72 | "id": 39565218, 73 | "node_id": "MDEyOlJlbGVhc2VBc3NldDM5NTY1MjE4", 74 | "name": "prometheus-2.28.1.darwin-arm64.tar.gz", 75 | "label": "", 76 | "uploader": { 77 | "login": "prombot", 78 | "id": 18470668, 79 | "node_id": "MDQ6VXNlcjE4NDcwNjY4", 80 | "avatar_url": "https://avatars.githubusercontent.com/u/18470668?v=4", 81 | "gravatar_id": "", 82 | "url": "https://api.github.com/users/prombot", 83 | "html_url": "https://github.com/prombot", 84 | "followers_url": "https://api.github.com/users/prombot/followers", 85 | "following_url": "https://api.github.com/users/prombot/following{/other_user}", 86 | "gists_url": "https://api.github.com/users/prombot/gists{/gist_id}", 87 | "starred_url": "https://api.github.com/users/prombot/starred{/owner}{/repo}", 88 | "subscriptions_url": "https://api.github.com/users/prombot/subscriptions", 89 | "organizations_url": "https://api.github.com/users/prombot/orgs", 90 | "repos_url": "https://api.github.com/users/prombot/repos", 91 | "events_url": "https://api.github.com/users/prombot/events{/privacy}", 92 | "received_events_url": "https://api.github.com/users/prombot/received_events", 93 | "type": "User", 94 | "site_admin": false 95 | }, 96 | "content_type": "application/gzip", 97 | "state": "uploaded", 98 | "size": 70570778, 99 | "download_count": 119, 100 | "created_at": "2021-07-01T16:36:14Z", 101 | "updated_at": "2021-07-01T16:36:16Z", 102 | "browser_download_url": "https://github.com/prometheus/prometheus/releases/download/v2.28.1/prometheus-2.28.1.darwin-arm64.tar.gz" 103 | }, 104 | { 105 | "url": "https://api.github.com/repos/prometheus/prometheus/releases/assets/39565219", 106 | "id": 39565219, 107 | "node_id": "MDEyOlJlbGVhc2VBc3NldDM5NTY1MjE5", 108 | "name": "prometheus-2.28.1.dragonfly-amd64.tar.gz", 109 | "label": "", 110 | "uploader": { 111 | "login": "prombot", 112 | "id": 18470668, 113 | "node_id": "MDQ6VXNlcjE4NDcwNjY4", 114 | "avatar_url": "https://avatars.githubusercontent.com/u/18470668?v=4", 115 | "gravatar_id": "", 116 | "url": "https://api.github.com/users/prombot", 117 | "html_url": "https://github.com/prombot", 118 | "followers_url": "https://api.github.com/users/prombot/followers", 119 | "following_url": "https://api.github.com/users/prombot/following{/other_user}", 120 | "gists_url": "https://api.github.com/users/prombot/gists{/gist_id}", 121 | "starred_url": "https://api.github.com/users/prombot/starred{/owner}{/repo}", 122 | "subscriptions_url": "https://api.github.com/users/prombot/subscriptions", 123 | "organizations_url": "https://api.github.com/users/prombot/orgs", 124 | "repos_url": "https://api.github.com/users/prombot/repos", 125 | "events_url": "https://api.github.com/users/prombot/events{/privacy}", 126 | "received_events_url": "https://api.github.com/users/prombot/received_events", 127 | "type": "User", 128 | "site_admin": false 129 | }, 130 | "content_type": "application/gzip", 131 | "state": "uploaded", 132 | "size": 70997797, 133 | "download_count": 38, 134 | "created_at": "2021-07-01T16:36:16Z", 135 | "updated_at": "2021-07-01T16:36:17Z", 136 | "browser_download_url": "https://github.com/prometheus/prometheus/releases/download/v2.28.1/prometheus-2.28.1.dragonfly-amd64.tar.gz" 137 | }, 138 | { 139 | "url": "https://api.github.com/repos/prometheus/prometheus/releases/assets/39565221", 140 | "id": 39565221, 141 | "node_id": "MDEyOlJlbGVhc2VBc3NldDM5NTY1MjIx", 142 | "name": "prometheus-2.28.1.freebsd-386.tar.gz", 143 | "label": "", 144 | "uploader": { 145 | "login": "prombot", 146 | "id": 18470668, 147 | "node_id": "MDQ6VXNlcjE4NDcwNjY4", 148 | "avatar_url": "https://avatars.githubusercontent.com/u/18470668?v=4", 149 | "gravatar_id": "", 150 | "url": "https://api.github.com/users/prombot", 151 | "html_url": "https://github.com/prombot", 152 | "followers_url": "https://api.github.com/users/prombot/followers", 153 | "following_url": "https://api.github.com/users/prombot/following{/other_user}", 154 | "gists_url": "https://api.github.com/users/prombot/gists{/gist_id}", 155 | "starred_url": "https://api.github.com/users/prombot/starred{/owner}{/repo}", 156 | "subscriptions_url": "https://api.github.com/users/prombot/subscriptions", 157 | "organizations_url": "https://api.github.com/users/prombot/orgs", 158 | "repos_url": "https://api.github.com/users/prombot/repos", 159 | "events_url": "https://api.github.com/users/prombot/events{/privacy}", 160 | "received_events_url": "https://api.github.com/users/prombot/received_events", 161 | "type": "User", 162 | "site_admin": false 163 | }, 164 | "content_type": "application/gzip", 165 | "state": "uploaded", 166 | "size": 67747560, 167 | "download_count": 43, 168 | "created_at": "2021-07-01T16:36:17Z", 169 | "updated_at": "2021-07-01T16:36:19Z", 170 | "browser_download_url": "https://github.com/prometheus/prometheus/releases/download/v2.28.1/prometheus-2.28.1.freebsd-386.tar.gz" 171 | }, 172 | { 173 | "url": "https://api.github.com/repos/prometheus/prometheus/releases/assets/39565223", 174 | "id": 39565223, 175 | "node_id": "MDEyOlJlbGVhc2VBc3NldDM5NTY1MjIz", 176 | "name": "prometheus-2.28.1.freebsd-amd64.tar.gz", 177 | "label": "", 178 | "uploader": { 179 | "login": "prombot", 180 | "id": 18470668, 181 | "node_id": "MDQ6VXNlcjE4NDcwNjY4", 182 | "avatar_url": "https://avatars.githubusercontent.com/u/18470668?v=4", 183 | "gravatar_id": "", 184 | "url": "https://api.github.com/users/prombot", 185 | "html_url": "https://github.com/prombot", 186 | "followers_url": "https://api.github.com/users/prombot/followers", 187 | "following_url": "https://api.github.com/users/prombot/following{/other_user}", 188 | "gists_url": "https://api.github.com/users/prombot/gists{/gist_id}", 189 | "starred_url": "https://api.github.com/users/prombot/starred{/owner}{/repo}", 190 | "subscriptions_url": "https://api.github.com/users/prombot/subscriptions", 191 | "organizations_url": "https://api.github.com/users/prombot/orgs", 192 | "repos_url": "https://api.github.com/users/prombot/repos", 193 | "events_url": "https://api.github.com/users/prombot/events{/privacy}", 194 | "received_events_url": "https://api.github.com/users/prombot/received_events", 195 | "type": "User", 196 | "site_admin": false 197 | }, 198 | "content_type": "application/gzip", 199 | "state": "uploaded", 200 | "size": 71045438, 201 | "download_count": 82, 202 | "created_at": "2021-07-01T16:36:19Z", 203 | "updated_at": "2021-07-01T16:36:21Z", 204 | "browser_download_url": "https://github.com/prometheus/prometheus/releases/download/v2.28.1/prometheus-2.28.1.freebsd-amd64.tar.gz" 205 | }, 206 | { 207 | "url": "https://api.github.com/repos/prometheus/prometheus/releases/assets/39565225", 208 | "id": 39565225, 209 | "node_id": "MDEyOlJlbGVhc2VBc3NldDM5NTY1MjI1", 210 | "name": "prometheus-2.28.1.freebsd-arm64.tar.gz", 211 | "label": "", 212 | "uploader": { 213 | "login": "prombot", 214 | "id": 18470668, 215 | "node_id": "MDQ6VXNlcjE4NDcwNjY4", 216 | "avatar_url": "https://avatars.githubusercontent.com/u/18470668?v=4", 217 | "gravatar_id": "", 218 | "url": "https://api.github.com/users/prombot", 219 | "html_url": "https://github.com/prombot", 220 | "followers_url": "https://api.github.com/users/prombot/followers", 221 | "following_url": "https://api.github.com/users/prombot/following{/other_user}", 222 | "gists_url": "https://api.github.com/users/prombot/gists{/gist_id}", 223 | "starred_url": "https://api.github.com/users/prombot/starred{/owner}{/repo}", 224 | "subscriptions_url": "https://api.github.com/users/prombot/subscriptions", 225 | "organizations_url": "https://api.github.com/users/prombot/orgs", 226 | "repos_url": "https://api.github.com/users/prombot/repos", 227 | "events_url": "https://api.github.com/users/prombot/events{/privacy}", 228 | "received_events_url": "https://api.github.com/users/prombot/received_events", 229 | "type": "User", 230 | "site_admin": false 231 | }, 232 | "content_type": "application/gzip", 233 | "state": "uploaded", 234 | "size": 66475913, 235 | "download_count": 38, 236 | "created_at": "2021-07-01T16:36:21Z", 237 | "updated_at": "2021-07-01T16:36:23Z", 238 | "browser_download_url": "https://github.com/prometheus/prometheus/releases/download/v2.28.1/prometheus-2.28.1.freebsd-arm64.tar.gz" 239 | }, 240 | { 241 | "url": "https://api.github.com/repos/prometheus/prometheus/releases/assets/39565226", 242 | "id": 39565226, 243 | "node_id": "MDEyOlJlbGVhc2VBc3NldDM5NTY1MjI2", 244 | "name": "prometheus-2.28.1.freebsd-armv6.tar.gz", 245 | "label": "", 246 | "uploader": { 247 | "login": "prombot", 248 | "id": 18470668, 249 | "node_id": "MDQ6VXNlcjE4NDcwNjY4", 250 | "avatar_url": "https://avatars.githubusercontent.com/u/18470668?v=4", 251 | "gravatar_id": "", 252 | "url": "https://api.github.com/users/prombot", 253 | "html_url": "https://github.com/prombot", 254 | "followers_url": "https://api.github.com/users/prombot/followers", 255 | "following_url": "https://api.github.com/users/prombot/following{/other_user}", 256 | "gists_url": "https://api.github.com/users/prombot/gists{/gist_id}", 257 | "starred_url": "https://api.github.com/users/prombot/starred{/owner}{/repo}", 258 | "subscriptions_url": "https://api.github.com/users/prombot/subscriptions", 259 | "organizations_url": "https://api.github.com/users/prombot/orgs", 260 | "repos_url": "https://api.github.com/users/prombot/repos", 261 | "events_url": "https://api.github.com/users/prombot/events{/privacy}", 262 | "received_events_url": "https://api.github.com/users/prombot/received_events", 263 | "type": "User", 264 | "site_admin": false 265 | }, 266 | "content_type": "application/gzip", 267 | "state": "uploaded", 268 | "size": 65821951, 269 | "download_count": 36, 270 | "created_at": "2021-07-01T16:36:23Z", 271 | "updated_at": "2021-07-01T16:36:25Z", 272 | "browser_download_url": "https://github.com/prometheus/prometheus/releases/download/v2.28.1/prometheus-2.28.1.freebsd-armv6.tar.gz" 273 | }, 274 | { 275 | "url": "https://api.github.com/repos/prometheus/prometheus/releases/assets/39565229", 276 | "id": 39565229, 277 | "node_id": "MDEyOlJlbGVhc2VBc3NldDM5NTY1MjI5", 278 | "name": "prometheus-2.28.1.freebsd-armv7.tar.gz", 279 | "label": "", 280 | "uploader": { 281 | "login": "prombot", 282 | "id": 18470668, 283 | "node_id": "MDQ6VXNlcjE4NDcwNjY4", 284 | "avatar_url": "https://avatars.githubusercontent.com/u/18470668?v=4", 285 | "gravatar_id": "", 286 | "url": "https://api.github.com/users/prombot", 287 | "html_url": "https://github.com/prombot", 288 | "followers_url": "https://api.github.com/users/prombot/followers", 289 | "following_url": "https://api.github.com/users/prombot/following{/other_user}", 290 | "gists_url": "https://api.github.com/users/prombot/gists{/gist_id}", 291 | "starred_url": "https://api.github.com/users/prombot/starred{/owner}{/repo}", 292 | "subscriptions_url": "https://api.github.com/users/prombot/subscriptions", 293 | "organizations_url": "https://api.github.com/users/prombot/orgs", 294 | "repos_url": "https://api.github.com/users/prombot/repos", 295 | "events_url": "https://api.github.com/users/prombot/events{/privacy}", 296 | "received_events_url": "https://api.github.com/users/prombot/received_events", 297 | "type": "User", 298 | "site_admin": false 299 | }, 300 | "content_type": "application/gzip", 301 | "state": "uploaded", 302 | "size": 65795070, 303 | "download_count": 32, 304 | "created_at": "2021-07-01T16:36:25Z", 305 | "updated_at": "2021-07-01T16:36:26Z", 306 | "browser_download_url": "https://github.com/prometheus/prometheus/releases/download/v2.28.1/prometheus-2.28.1.freebsd-armv7.tar.gz" 307 | }, 308 | { 309 | "url": "https://api.github.com/repos/prometheus/prometheus/releases/assets/39565230", 310 | "id": 39565230, 311 | "node_id": "MDEyOlJlbGVhc2VBc3NldDM5NTY1MjMw", 312 | "name": "prometheus-2.28.1.illumos-amd64.tar.gz", 313 | "label": "", 314 | "uploader": { 315 | "login": "prombot", 316 | "id": 18470668, 317 | "node_id": "MDQ6VXNlcjE4NDcwNjY4", 318 | "avatar_url": "https://avatars.githubusercontent.com/u/18470668?v=4", 319 | "gravatar_id": "", 320 | "url": "https://api.github.com/users/prombot", 321 | "html_url": "https://github.com/prombot", 322 | "followers_url": "https://api.github.com/users/prombot/followers", 323 | "following_url": "https://api.github.com/users/prombot/following{/other_user}", 324 | "gists_url": "https://api.github.com/users/prombot/gists{/gist_id}", 325 | "starred_url": "https://api.github.com/users/prombot/starred{/owner}{/repo}", 326 | "subscriptions_url": "https://api.github.com/users/prombot/subscriptions", 327 | "organizations_url": "https://api.github.com/users/prombot/orgs", 328 | "repos_url": "https://api.github.com/users/prombot/repos", 329 | "events_url": "https://api.github.com/users/prombot/events{/privacy}", 330 | "received_events_url": "https://api.github.com/users/prombot/received_events", 331 | "type": "User", 332 | "site_admin": false 333 | }, 334 | "content_type": "application/gzip", 335 | "state": "uploaded", 336 | "size": 70901713, 337 | "download_count": 59, 338 | "created_at": "2021-07-01T16:36:26Z", 339 | "updated_at": "2021-07-01T16:36:28Z", 340 | "browser_download_url": "https://github.com/prometheus/prometheus/releases/download/v2.28.1/prometheus-2.28.1.illumos-amd64.tar.gz" 341 | }, 342 | { 343 | "url": "https://api.github.com/repos/prometheus/prometheus/releases/assets/39565231", 344 | "id": 39565231, 345 | "node_id": "MDEyOlJlbGVhc2VBc3NldDM5NTY1MjMx", 346 | "name": "prometheus-2.28.1.linux-386.tar.gz", 347 | "label": "", 348 | "uploader": { 349 | "login": "prombot", 350 | "id": 18470668, 351 | "node_id": "MDQ6VXNlcjE4NDcwNjY4", 352 | "avatar_url": "https://avatars.githubusercontent.com/u/18470668?v=4", 353 | "gravatar_id": "", 354 | "url": "https://api.github.com/users/prombot", 355 | "html_url": "https://github.com/prombot", 356 | "followers_url": "https://api.github.com/users/prombot/followers", 357 | "following_url": "https://api.github.com/users/prombot/following{/other_user}", 358 | "gists_url": "https://api.github.com/users/prombot/gists{/gist_id}", 359 | "starred_url": "https://api.github.com/users/prombot/starred{/owner}{/repo}", 360 | "subscriptions_url": "https://api.github.com/users/prombot/subscriptions", 361 | "organizations_url": "https://api.github.com/users/prombot/orgs", 362 | "repos_url": "https://api.github.com/users/prombot/repos", 363 | "events_url": "https://api.github.com/users/prombot/events{/privacy}", 364 | "received_events_url": "https://api.github.com/users/prombot/received_events", 365 | "type": "User", 366 | "site_admin": false 367 | }, 368 | "content_type": "application/gzip", 369 | "state": "uploaded", 370 | "size": 67887621, 371 | "download_count": 334, 372 | "created_at": "2021-07-01T16:36:28Z", 373 | "updated_at": "2021-07-01T16:36:30Z", 374 | "browser_download_url": "https://github.com/prometheus/prometheus/releases/download/v2.28.1/prometheus-2.28.1.linux-386.tar.gz" 375 | }, 376 | { 377 | "url": "https://api.github.com/repos/prometheus/prometheus/releases/assets/39565233", 378 | "id": 39565233, 379 | "node_id": "MDEyOlJlbGVhc2VBc3NldDM5NTY1MjMz", 380 | "name": "prometheus-2.28.1.linux-amd64.tar.gz", 381 | "label": "", 382 | "uploader": { 383 | "login": "prombot", 384 | "id": 18470668, 385 | "node_id": "MDQ6VXNlcjE4NDcwNjY4", 386 | "avatar_url": "https://avatars.githubusercontent.com/u/18470668?v=4", 387 | "gravatar_id": "", 388 | "url": "https://api.github.com/users/prombot", 389 | "html_url": "https://github.com/prombot", 390 | "followers_url": "https://api.github.com/users/prombot/followers", 391 | "following_url": "https://api.github.com/users/prombot/following{/other_user}", 392 | "gists_url": "https://api.github.com/users/prombot/gists{/gist_id}", 393 | "starred_url": "https://api.github.com/users/prombot/starred{/owner}{/repo}", 394 | "subscriptions_url": "https://api.github.com/users/prombot/subscriptions", 395 | "organizations_url": "https://api.github.com/users/prombot/orgs", 396 | "repos_url": "https://api.github.com/users/prombot/repos", 397 | "events_url": "https://api.github.com/users/prombot/events{/privacy}", 398 | "received_events_url": "https://api.github.com/users/prombot/received_events", 399 | "type": "User", 400 | "site_admin": false 401 | }, 402 | "content_type": "application/gzip", 403 | "state": "uploaded", 404 | "size": 71109475, 405 | "download_count": 30324, 406 | "created_at": "2021-07-01T16:36:30Z", 407 | "updated_at": "2021-07-01T16:36:32Z", 408 | "browser_download_url": "https://github.com/prometheus/prometheus/releases/download/v2.28.1/prometheus-2.28.1.linux-amd64.tar.gz" 409 | }, 410 | { 411 | "url": "https://api.github.com/repos/prometheus/prometheus/releases/assets/39565236", 412 | "id": 39565236, 413 | "node_id": "MDEyOlJlbGVhc2VBc3NldDM5NTY1MjM2", 414 | "name": "prometheus-2.28.1.linux-arm64.tar.gz", 415 | "label": "", 416 | "uploader": { 417 | "login": "prombot", 418 | "id": 18470668, 419 | "node_id": "MDQ6VXNlcjE4NDcwNjY4", 420 | "avatar_url": "https://avatars.githubusercontent.com/u/18470668?v=4", 421 | "gravatar_id": "", 422 | "url": "https://api.github.com/users/prombot", 423 | "html_url": "https://github.com/prombot", 424 | "followers_url": "https://api.github.com/users/prombot/followers", 425 | "following_url": "https://api.github.com/users/prombot/following{/other_user}", 426 | "gists_url": "https://api.github.com/users/prombot/gists{/gist_id}", 427 | "starred_url": "https://api.github.com/users/prombot/starred{/owner}{/repo}", 428 | "subscriptions_url": "https://api.github.com/users/prombot/subscriptions", 429 | "organizations_url": "https://api.github.com/users/prombot/orgs", 430 | "repos_url": "https://api.github.com/users/prombot/repos", 431 | "events_url": "https://api.github.com/users/prombot/events{/privacy}", 432 | "received_events_url": "https://api.github.com/users/prombot/received_events", 433 | "type": "User", 434 | "site_admin": false 435 | }, 436 | "content_type": "application/gzip", 437 | "state": "uploaded", 438 | "size": 66883455, 439 | "download_count": 985, 440 | "created_at": "2021-07-01T16:36:32Z", 441 | "updated_at": "2021-07-01T16:36:33Z", 442 | "browser_download_url": "https://github.com/prometheus/prometheus/releases/download/v2.28.1/prometheus-2.28.1.linux-arm64.tar.gz" 443 | }, 444 | { 445 | "url": "https://api.github.com/repos/prometheus/prometheus/releases/assets/39565239", 446 | "id": 39565239, 447 | "node_id": "MDEyOlJlbGVhc2VBc3NldDM5NTY1MjM5", 448 | "name": "prometheus-2.28.1.linux-armv5.tar.gz", 449 | "label": "", 450 | "uploader": { 451 | "login": "prombot", 452 | "id": 18470668, 453 | "node_id": "MDQ6VXNlcjE4NDcwNjY4", 454 | "avatar_url": "https://avatars.githubusercontent.com/u/18470668?v=4", 455 | "gravatar_id": "", 456 | "url": "https://api.github.com/users/prombot", 457 | "html_url": "https://github.com/prombot", 458 | "followers_url": "https://api.github.com/users/prombot/followers", 459 | "following_url": "https://api.github.com/users/prombot/following{/other_user}", 460 | "gists_url": "https://api.github.com/users/prombot/gists{/gist_id}", 461 | "starred_url": "https://api.github.com/users/prombot/starred{/owner}{/repo}", 462 | "subscriptions_url": "https://api.github.com/users/prombot/subscriptions", 463 | "organizations_url": "https://api.github.com/users/prombot/orgs", 464 | "repos_url": "https://api.github.com/users/prombot/repos", 465 | "events_url": "https://api.github.com/users/prombot/events{/privacy}", 466 | "received_events_url": "https://api.github.com/users/prombot/received_events", 467 | "type": "User", 468 | "site_admin": false 469 | }, 470 | "content_type": "application/gzip", 471 | "state": "uploaded", 472 | "size": 66068504, 473 | "download_count": 33, 474 | "created_at": "2021-07-01T16:36:33Z", 475 | "updated_at": "2021-07-01T16:36:35Z", 476 | "browser_download_url": "https://github.com/prometheus/prometheus/releases/download/v2.28.1/prometheus-2.28.1.linux-armv5.tar.gz" 477 | }, 478 | { 479 | "url": "https://api.github.com/repos/prometheus/prometheus/releases/assets/39565241", 480 | "id": 39565241, 481 | "node_id": "MDEyOlJlbGVhc2VBc3NldDM5NTY1MjQx", 482 | "name": "prometheus-2.28.1.linux-armv6.tar.gz", 483 | "label": "", 484 | "uploader": { 485 | "login": "prombot", 486 | "id": 18470668, 487 | "node_id": "MDQ6VXNlcjE4NDcwNjY4", 488 | "avatar_url": "https://avatars.githubusercontent.com/u/18470668?v=4", 489 | "gravatar_id": "", 490 | "url": "https://api.github.com/users/prombot", 491 | "html_url": "https://github.com/prombot", 492 | "followers_url": "https://api.github.com/users/prombot/followers", 493 | "following_url": "https://api.github.com/users/prombot/following{/other_user}", 494 | "gists_url": "https://api.github.com/users/prombot/gists{/gist_id}", 495 | "starred_url": "https://api.github.com/users/prombot/starred{/owner}{/repo}", 496 | "subscriptions_url": "https://api.github.com/users/prombot/subscriptions", 497 | "organizations_url": "https://api.github.com/users/prombot/orgs", 498 | "repos_url": "https://api.github.com/users/prombot/repos", 499 | "events_url": "https://api.github.com/users/prombot/events{/privacy}", 500 | "received_events_url": "https://api.github.com/users/prombot/received_events", 501 | "type": "User", 502 | "site_admin": false 503 | }, 504 | "content_type": "application/gzip", 505 | "state": "uploaded", 506 | "size": 65895901, 507 | "download_count": 109, 508 | "created_at": "2021-07-01T16:36:35Z", 509 | "updated_at": "2021-07-01T16:36:38Z", 510 | "browser_download_url": "https://github.com/prometheus/prometheus/releases/download/v2.28.1/prometheus-2.28.1.linux-armv6.tar.gz" 511 | }, 512 | { 513 | "url": "https://api.github.com/repos/prometheus/prometheus/releases/assets/39565244", 514 | "id": 39565244, 515 | "node_id": "MDEyOlJlbGVhc2VBc3NldDM5NTY1MjQ0", 516 | "name": "prometheus-2.28.1.linux-armv7.tar.gz", 517 | "label": "", 518 | "uploader": { 519 | "login": "prombot", 520 | "id": 18470668, 521 | "node_id": "MDQ6VXNlcjE4NDcwNjY4", 522 | "avatar_url": "https://avatars.githubusercontent.com/u/18470668?v=4", 523 | "gravatar_id": "", 524 | "url": "https://api.github.com/users/prombot", 525 | "html_url": "https://github.com/prombot", 526 | "followers_url": "https://api.github.com/users/prombot/followers", 527 | "following_url": "https://api.github.com/users/prombot/following{/other_user}", 528 | "gists_url": "https://api.github.com/users/prombot/gists{/gist_id}", 529 | "starred_url": "https://api.github.com/users/prombot/starred{/owner}{/repo}", 530 | "subscriptions_url": "https://api.github.com/users/prombot/subscriptions", 531 | "organizations_url": "https://api.github.com/users/prombot/orgs", 532 | "repos_url": "https://api.github.com/users/prombot/repos", 533 | "events_url": "https://api.github.com/users/prombot/events{/privacy}", 534 | "received_events_url": "https://api.github.com/users/prombot/received_events", 535 | "type": "User", 536 | "site_admin": false 537 | }, 538 | "content_type": "application/gzip", 539 | "state": "uploaded", 540 | "size": 65878407, 541 | "download_count": 616, 542 | "created_at": "2021-07-01T16:36:39Z", 543 | "updated_at": "2021-07-01T16:36:40Z", 544 | "browser_download_url": "https://github.com/prometheus/prometheus/releases/download/v2.28.1/prometheus-2.28.1.linux-armv7.tar.gz" 545 | }, 546 | { 547 | "url": "https://api.github.com/repos/prometheus/prometheus/releases/assets/39565247", 548 | "id": 39565247, 549 | "node_id": "MDEyOlJlbGVhc2VBc3NldDM5NTY1MjQ3", 550 | "name": "prometheus-2.28.1.linux-mips.tar.gz", 551 | "label": "", 552 | "uploader": { 553 | "login": "prombot", 554 | "id": 18470668, 555 | "node_id": "MDQ6VXNlcjE4NDcwNjY4", 556 | "avatar_url": "https://avatars.githubusercontent.com/u/18470668?v=4", 557 | "gravatar_id": "", 558 | "url": "https://api.github.com/users/prombot", 559 | "html_url": "https://github.com/prombot", 560 | "followers_url": "https://api.github.com/users/prombot/followers", 561 | "following_url": "https://api.github.com/users/prombot/following{/other_user}", 562 | "gists_url": "https://api.github.com/users/prombot/gists{/gist_id}", 563 | "starred_url": "https://api.github.com/users/prombot/starred{/owner}{/repo}", 564 | "subscriptions_url": "https://api.github.com/users/prombot/subscriptions", 565 | "organizations_url": "https://api.github.com/users/prombot/orgs", 566 | "repos_url": "https://api.github.com/users/prombot/repos", 567 | "events_url": "https://api.github.com/users/prombot/events{/privacy}", 568 | "received_events_url": "https://api.github.com/users/prombot/received_events", 569 | "type": "User", 570 | "site_admin": false 571 | }, 572 | "content_type": "application/gzip", 573 | "state": "uploaded", 574 | "size": 64318929, 575 | "download_count": 34, 576 | "created_at": "2021-07-01T16:36:40Z", 577 | "updated_at": "2021-07-01T16:36:42Z", 578 | "browser_download_url": "https://github.com/prometheus/prometheus/releases/download/v2.28.1/prometheus-2.28.1.linux-mips.tar.gz" 579 | }, 580 | { 581 | "url": "https://api.github.com/repos/prometheus/prometheus/releases/assets/39565259", 582 | "id": 39565259, 583 | "node_id": "MDEyOlJlbGVhc2VBc3NldDM5NTY1MjU5", 584 | "name": "prometheus-2.28.1.linux-mips64.tar.gz", 585 | "label": "", 586 | "uploader": { 587 | "login": "prombot", 588 | "id": 18470668, 589 | "node_id": "MDQ6VXNlcjE4NDcwNjY4", 590 | "avatar_url": "https://avatars.githubusercontent.com/u/18470668?v=4", 591 | "gravatar_id": "", 592 | "url": "https://api.github.com/users/prombot", 593 | "html_url": "https://github.com/prombot", 594 | "followers_url": "https://api.github.com/users/prombot/followers", 595 | "following_url": "https://api.github.com/users/prombot/following{/other_user}", 596 | "gists_url": "https://api.github.com/users/prombot/gists{/gist_id}", 597 | "starred_url": "https://api.github.com/users/prombot/starred{/owner}{/repo}", 598 | "subscriptions_url": "https://api.github.com/users/prombot/subscriptions", 599 | "organizations_url": "https://api.github.com/users/prombot/orgs", 600 | "repos_url": "https://api.github.com/users/prombot/repos", 601 | "events_url": "https://api.github.com/users/prombot/events{/privacy}", 602 | "received_events_url": "https://api.github.com/users/prombot/received_events", 603 | "type": "User", 604 | "site_admin": false 605 | }, 606 | "content_type": "application/gzip", 607 | "state": "uploaded", 608 | "size": 64925222, 609 | "download_count": 32, 610 | "created_at": "2021-07-01T16:36:42Z", 611 | "updated_at": "2021-07-01T16:36:43Z", 612 | "browser_download_url": "https://github.com/prometheus/prometheus/releases/download/v2.28.1/prometheus-2.28.1.linux-mips64.tar.gz" 613 | }, 614 | { 615 | "url": "https://api.github.com/repos/prometheus/prometheus/releases/assets/39565266", 616 | "id": 39565266, 617 | "node_id": "MDEyOlJlbGVhc2VBc3NldDM5NTY1MjY2", 618 | "name": "prometheus-2.28.1.linux-mips64le.tar.gz", 619 | "label": "", 620 | "uploader": { 621 | "login": "prombot", 622 | "id": 18470668, 623 | "node_id": "MDQ6VXNlcjE4NDcwNjY4", 624 | "avatar_url": "https://avatars.githubusercontent.com/u/18470668?v=4", 625 | "gravatar_id": "", 626 | "url": "https://api.github.com/users/prombot", 627 | "html_url": "https://github.com/prombot", 628 | "followers_url": "https://api.github.com/users/prombot/followers", 629 | "following_url": "https://api.github.com/users/prombot/following{/other_user}", 630 | "gists_url": "https://api.github.com/users/prombot/gists{/gist_id}", 631 | "starred_url": "https://api.github.com/users/prombot/starred{/owner}{/repo}", 632 | "subscriptions_url": "https://api.github.com/users/prombot/subscriptions", 633 | "organizations_url": "https://api.github.com/users/prombot/orgs", 634 | "repos_url": "https://api.github.com/users/prombot/repos", 635 | "events_url": "https://api.github.com/users/prombot/events{/privacy}", 636 | "received_events_url": "https://api.github.com/users/prombot/received_events", 637 | "type": "User", 638 | "site_admin": false 639 | }, 640 | "content_type": "application/gzip", 641 | "state": "uploaded", 642 | "size": 62239598, 643 | "download_count": 37, 644 | "created_at": "2021-07-01T16:36:43Z", 645 | "updated_at": "2021-07-01T16:36:45Z", 646 | "browser_download_url": "https://github.com/prometheus/prometheus/releases/download/v2.28.1/prometheus-2.28.1.linux-mips64le.tar.gz" 647 | }, 648 | { 649 | "url": "https://api.github.com/repos/prometheus/prometheus/releases/assets/39565270", 650 | "id": 39565270, 651 | "node_id": "MDEyOlJlbGVhc2VBc3NldDM5NTY1Mjcw", 652 | "name": "prometheus-2.28.1.linux-mipsle.tar.gz", 653 | "label": "", 654 | "uploader": { 655 | "login": "prombot", 656 | "id": 18470668, 657 | "node_id": "MDQ6VXNlcjE4NDcwNjY4", 658 | "avatar_url": "https://avatars.githubusercontent.com/u/18470668?v=4", 659 | "gravatar_id": "", 660 | "url": "https://api.github.com/users/prombot", 661 | "html_url": "https://github.com/prombot", 662 | "followers_url": "https://api.github.com/users/prombot/followers", 663 | "following_url": "https://api.github.com/users/prombot/following{/other_user}", 664 | "gists_url": "https://api.github.com/users/prombot/gists{/gist_id}", 665 | "starred_url": "https://api.github.com/users/prombot/starred{/owner}{/repo}", 666 | "subscriptions_url": "https://api.github.com/users/prombot/subscriptions", 667 | "organizations_url": "https://api.github.com/users/prombot/orgs", 668 | "repos_url": "https://api.github.com/users/prombot/repos", 669 | "events_url": "https://api.github.com/users/prombot/events{/privacy}", 670 | "received_events_url": "https://api.github.com/users/prombot/received_events", 671 | "type": "User", 672 | "site_admin": false 673 | }, 674 | "content_type": "application/gzip", 675 | "state": "uploaded", 676 | "size": 62480996, 677 | "download_count": 32, 678 | "created_at": "2021-07-01T16:36:45Z", 679 | "updated_at": "2021-07-01T16:36:46Z", 680 | "browser_download_url": "https://github.com/prometheus/prometheus/releases/download/v2.28.1/prometheus-2.28.1.linux-mipsle.tar.gz" 681 | }, 682 | { 683 | "url": "https://api.github.com/repos/prometheus/prometheus/releases/assets/39565272", 684 | "id": 39565272, 685 | "node_id": "MDEyOlJlbGVhc2VBc3NldDM5NTY1Mjcy", 686 | "name": "prometheus-2.28.1.linux-ppc64.tar.gz", 687 | "label": "", 688 | "uploader": { 689 | "login": "prombot", 690 | "id": 18470668, 691 | "node_id": "MDQ6VXNlcjE4NDcwNjY4", 692 | "avatar_url": "https://avatars.githubusercontent.com/u/18470668?v=4", 693 | "gravatar_id": "", 694 | "url": "https://api.github.com/users/prombot", 695 | "html_url": "https://github.com/prombot", 696 | "followers_url": "https://api.github.com/users/prombot/followers", 697 | "following_url": "https://api.github.com/users/prombot/following{/other_user}", 698 | "gists_url": "https://api.github.com/users/prombot/gists{/gist_id}", 699 | "starred_url": "https://api.github.com/users/prombot/starred{/owner}{/repo}", 700 | "subscriptions_url": "https://api.github.com/users/prombot/subscriptions", 701 | "organizations_url": "https://api.github.com/users/prombot/orgs", 702 | "repos_url": "https://api.github.com/users/prombot/repos", 703 | "events_url": "https://api.github.com/users/prombot/events{/privacy}", 704 | "received_events_url": "https://api.github.com/users/prombot/received_events", 705 | "type": "User", 706 | "site_admin": false 707 | }, 708 | "content_type": "application/gzip", 709 | "state": "uploaded", 710 | "size": 67725523, 711 | "download_count": 35, 712 | "created_at": "2021-07-01T16:36:47Z", 713 | "updated_at": "2021-07-01T16:36:49Z", 714 | "browser_download_url": "https://github.com/prometheus/prometheus/releases/download/v2.28.1/prometheus-2.28.1.linux-ppc64.tar.gz" 715 | }, 716 | { 717 | "url": "https://api.github.com/repos/prometheus/prometheus/releases/assets/39565277", 718 | "id": 39565277, 719 | "node_id": "MDEyOlJlbGVhc2VBc3NldDM5NTY1Mjc3", 720 | "name": "prometheus-2.28.1.linux-ppc64le.tar.gz", 721 | "label": "", 722 | "uploader": { 723 | "login": "prombot", 724 | "id": 18470668, 725 | "node_id": "MDQ6VXNlcjE4NDcwNjY4", 726 | "avatar_url": "https://avatars.githubusercontent.com/u/18470668?v=4", 727 | "gravatar_id": "", 728 | "url": "https://api.github.com/users/prombot", 729 | "html_url": "https://github.com/prombot", 730 | "followers_url": "https://api.github.com/users/prombot/followers", 731 | "following_url": "https://api.github.com/users/prombot/following{/other_user}", 732 | "gists_url": "https://api.github.com/users/prombot/gists{/gist_id}", 733 | "starred_url": "https://api.github.com/users/prombot/starred{/owner}{/repo}", 734 | "subscriptions_url": "https://api.github.com/users/prombot/subscriptions", 735 | "organizations_url": "https://api.github.com/users/prombot/orgs", 736 | "repos_url": "https://api.github.com/users/prombot/repos", 737 | "events_url": "https://api.github.com/users/prombot/events{/privacy}", 738 | "received_events_url": "https://api.github.com/users/prombot/received_events", 739 | "type": "User", 740 | "site_admin": false 741 | }, 742 | "content_type": "application/gzip", 743 | "state": "uploaded", 744 | "size": 65075568, 745 | "download_count": 45, 746 | "created_at": "2021-07-01T16:36:49Z", 747 | "updated_at": "2021-07-01T16:36:50Z", 748 | "browser_download_url": "https://github.com/prometheus/prometheus/releases/download/v2.28.1/prometheus-2.28.1.linux-ppc64le.tar.gz" 749 | }, 750 | { 751 | "url": "https://api.github.com/repos/prometheus/prometheus/releases/assets/39565281", 752 | "id": 39565281, 753 | "node_id": "MDEyOlJlbGVhc2VBc3NldDM5NTY1Mjgx", 754 | "name": "prometheus-2.28.1.linux-s390x.tar.gz", 755 | "label": "", 756 | "uploader": { 757 | "login": "prombot", 758 | "id": 18470668, 759 | "node_id": "MDQ6VXNlcjE4NDcwNjY4", 760 | "avatar_url": "https://avatars.githubusercontent.com/u/18470668?v=4", 761 | "gravatar_id": "", 762 | "url": "https://api.github.com/users/prombot", 763 | "html_url": "https://github.com/prombot", 764 | "followers_url": "https://api.github.com/users/prombot/followers", 765 | "following_url": "https://api.github.com/users/prombot/following{/other_user}", 766 | "gists_url": "https://api.github.com/users/prombot/gists{/gist_id}", 767 | "starred_url": "https://api.github.com/users/prombot/starred{/owner}{/repo}", 768 | "subscriptions_url": "https://api.github.com/users/prombot/subscriptions", 769 | "organizations_url": "https://api.github.com/users/prombot/orgs", 770 | "repos_url": "https://api.github.com/users/prombot/repos", 771 | "events_url": "https://api.github.com/users/prombot/events{/privacy}", 772 | "received_events_url": "https://api.github.com/users/prombot/received_events", 773 | "type": "User", 774 | "site_admin": false 775 | }, 776 | "content_type": "application/gzip", 777 | "state": "uploaded", 778 | "size": 71465908, 779 | "download_count": 69, 780 | "created_at": "2021-07-01T16:36:50Z", 781 | "updated_at": "2021-07-01T16:36:52Z", 782 | "browser_download_url": "https://github.com/prometheus/prometheus/releases/download/v2.28.1/prometheus-2.28.1.linux-s390x.tar.gz" 783 | }, 784 | { 785 | "url": "https://api.github.com/repos/prometheus/prometheus/releases/assets/39565283", 786 | "id": 39565283, 787 | "node_id": "MDEyOlJlbGVhc2VBc3NldDM5NTY1Mjgz", 788 | "name": "prometheus-2.28.1.netbsd-386.tar.gz", 789 | "label": "", 790 | "uploader": { 791 | "login": "prombot", 792 | "id": 18470668, 793 | "node_id": "MDQ6VXNlcjE4NDcwNjY4", 794 | "avatar_url": "https://avatars.githubusercontent.com/u/18470668?v=4", 795 | "gravatar_id": "", 796 | "url": "https://api.github.com/users/prombot", 797 | "html_url": "https://github.com/prombot", 798 | "followers_url": "https://api.github.com/users/prombot/followers", 799 | "following_url": "https://api.github.com/users/prombot/following{/other_user}", 800 | "gists_url": "https://api.github.com/users/prombot/gists{/gist_id}", 801 | "starred_url": "https://api.github.com/users/prombot/starred{/owner}{/repo}", 802 | "subscriptions_url": "https://api.github.com/users/prombot/subscriptions", 803 | "organizations_url": "https://api.github.com/users/prombot/orgs", 804 | "repos_url": "https://api.github.com/users/prombot/repos", 805 | "events_url": "https://api.github.com/users/prombot/events{/privacy}", 806 | "received_events_url": "https://api.github.com/users/prombot/received_events", 807 | "type": "User", 808 | "site_admin": false 809 | }, 810 | "content_type": "application/gzip", 811 | "state": "uploaded", 812 | "size": 67694876, 813 | "download_count": 31, 814 | "created_at": "2021-07-01T16:36:52Z", 815 | "updated_at": "2021-07-01T16:36:54Z", 816 | "browser_download_url": "https://github.com/prometheus/prometheus/releases/download/v2.28.1/prometheus-2.28.1.netbsd-386.tar.gz" 817 | }, 818 | { 819 | "url": "https://api.github.com/repos/prometheus/prometheus/releases/assets/39565287", 820 | "id": 39565287, 821 | "node_id": "MDEyOlJlbGVhc2VBc3NldDM5NTY1Mjg3", 822 | "name": "prometheus-2.28.1.netbsd-amd64.tar.gz", 823 | "label": "", 824 | "uploader": { 825 | "login": "prombot", 826 | "id": 18470668, 827 | "node_id": "MDQ6VXNlcjE4NDcwNjY4", 828 | "avatar_url": "https://avatars.githubusercontent.com/u/18470668?v=4", 829 | "gravatar_id": "", 830 | "url": "https://api.github.com/users/prombot", 831 | "html_url": "https://github.com/prombot", 832 | "followers_url": "https://api.github.com/users/prombot/followers", 833 | "following_url": "https://api.github.com/users/prombot/following{/other_user}", 834 | "gists_url": "https://api.github.com/users/prombot/gists{/gist_id}", 835 | "starred_url": "https://api.github.com/users/prombot/starred{/owner}{/repo}", 836 | "subscriptions_url": "https://api.github.com/users/prombot/subscriptions", 837 | "organizations_url": "https://api.github.com/users/prombot/orgs", 838 | "repos_url": "https://api.github.com/users/prombot/repos", 839 | "events_url": "https://api.github.com/users/prombot/events{/privacy}", 840 | "received_events_url": "https://api.github.com/users/prombot/received_events", 841 | "type": "User", 842 | "site_admin": false 843 | }, 844 | "content_type": "application/gzip", 845 | "state": "uploaded", 846 | "size": 70981601, 847 | "download_count": 42, 848 | "created_at": "2021-07-01T16:36:54Z", 849 | "updated_at": "2021-07-01T16:36:56Z", 850 | "browser_download_url": "https://github.com/prometheus/prometheus/releases/download/v2.28.1/prometheus-2.28.1.netbsd-amd64.tar.gz" 851 | }, 852 | { 853 | "url": "https://api.github.com/repos/prometheus/prometheus/releases/assets/39565289", 854 | "id": 39565289, 855 | "node_id": "MDEyOlJlbGVhc2VBc3NldDM5NTY1Mjg5", 856 | "name": "prometheus-2.28.1.netbsd-arm64.tar.gz", 857 | "label": "", 858 | "uploader": { 859 | "login": "prombot", 860 | "id": 18470668, 861 | "node_id": "MDQ6VXNlcjE4NDcwNjY4", 862 | "avatar_url": "https://avatars.githubusercontent.com/u/18470668?v=4", 863 | "gravatar_id": "", 864 | "url": "https://api.github.com/users/prombot", 865 | "html_url": "https://github.com/prombot", 866 | "followers_url": "https://api.github.com/users/prombot/followers", 867 | "following_url": "https://api.github.com/users/prombot/following{/other_user}", 868 | "gists_url": "https://api.github.com/users/prombot/gists{/gist_id}", 869 | "starred_url": "https://api.github.com/users/prombot/starred{/owner}{/repo}", 870 | "subscriptions_url": "https://api.github.com/users/prombot/subscriptions", 871 | "organizations_url": "https://api.github.com/users/prombot/orgs", 872 | "repos_url": "https://api.github.com/users/prombot/repos", 873 | "events_url": "https://api.github.com/users/prombot/events{/privacy}", 874 | "received_events_url": "https://api.github.com/users/prombot/received_events", 875 | "type": "User", 876 | "site_admin": false 877 | }, 878 | "content_type": "application/gzip", 879 | "state": "uploaded", 880 | "size": 66420539, 881 | "download_count": 36, 882 | "created_at": "2021-07-01T16:36:56Z", 883 | "updated_at": "2021-07-01T16:36:57Z", 884 | "browser_download_url": "https://github.com/prometheus/prometheus/releases/download/v2.28.1/prometheus-2.28.1.netbsd-arm64.tar.gz" 885 | }, 886 | { 887 | "url": "https://api.github.com/repos/prometheus/prometheus/releases/assets/39565291", 888 | "id": 39565291, 889 | "node_id": "MDEyOlJlbGVhc2VBc3NldDM5NTY1Mjkx", 890 | "name": "prometheus-2.28.1.netbsd-armv6.tar.gz", 891 | "label": "", 892 | "uploader": { 893 | "login": "prombot", 894 | "id": 18470668, 895 | "node_id": "MDQ6VXNlcjE4NDcwNjY4", 896 | "avatar_url": "https://avatars.githubusercontent.com/u/18470668?v=4", 897 | "gravatar_id": "", 898 | "url": "https://api.github.com/users/prombot", 899 | "html_url": "https://github.com/prombot", 900 | "followers_url": "https://api.github.com/users/prombot/followers", 901 | "following_url": "https://api.github.com/users/prombot/following{/other_user}", 902 | "gists_url": "https://api.github.com/users/prombot/gists{/gist_id}", 903 | "starred_url": "https://api.github.com/users/prombot/starred{/owner}{/repo}", 904 | "subscriptions_url": "https://api.github.com/users/prombot/subscriptions", 905 | "organizations_url": "https://api.github.com/users/prombot/orgs", 906 | "repos_url": "https://api.github.com/users/prombot/repos", 907 | "events_url": "https://api.github.com/users/prombot/events{/privacy}", 908 | "received_events_url": "https://api.github.com/users/prombot/received_events", 909 | "type": "User", 910 | "site_admin": false 911 | }, 912 | "content_type": "application/gzip", 913 | "state": "uploaded", 914 | "size": 65770179, 915 | "download_count": 33, 916 | "created_at": "2021-07-01T16:36:58Z", 917 | "updated_at": "2021-07-01T16:37:00Z", 918 | "browser_download_url": "https://github.com/prometheus/prometheus/releases/download/v2.28.1/prometheus-2.28.1.netbsd-armv6.tar.gz" 919 | }, 920 | { 921 | "url": "https://api.github.com/repos/prometheus/prometheus/releases/assets/39565294", 922 | "id": 39565294, 923 | "node_id": "MDEyOlJlbGVhc2VBc3NldDM5NTY1Mjk0", 924 | "name": "prometheus-2.28.1.netbsd-armv7.tar.gz", 925 | "label": "", 926 | "uploader": { 927 | "login": "prombot", 928 | "id": 18470668, 929 | "node_id": "MDQ6VXNlcjE4NDcwNjY4", 930 | "avatar_url": "https://avatars.githubusercontent.com/u/18470668?v=4", 931 | "gravatar_id": "", 932 | "url": "https://api.github.com/users/prombot", 933 | "html_url": "https://github.com/prombot", 934 | "followers_url": "https://api.github.com/users/prombot/followers", 935 | "following_url": "https://api.github.com/users/prombot/following{/other_user}", 936 | "gists_url": "https://api.github.com/users/prombot/gists{/gist_id}", 937 | "starred_url": "https://api.github.com/users/prombot/starred{/owner}{/repo}", 938 | "subscriptions_url": "https://api.github.com/users/prombot/subscriptions", 939 | "organizations_url": "https://api.github.com/users/prombot/orgs", 940 | "repos_url": "https://api.github.com/users/prombot/repos", 941 | "events_url": "https://api.github.com/users/prombot/events{/privacy}", 942 | "received_events_url": "https://api.github.com/users/prombot/received_events", 943 | "type": "User", 944 | "site_admin": false 945 | }, 946 | "content_type": "application/gzip", 947 | "state": "uploaded", 948 | "size": 65746421, 949 | "download_count": 29, 950 | "created_at": "2021-07-01T16:37:00Z", 951 | "updated_at": "2021-07-01T16:37:01Z", 952 | "browser_download_url": "https://github.com/prometheus/prometheus/releases/download/v2.28.1/prometheus-2.28.1.netbsd-armv7.tar.gz" 953 | }, 954 | { 955 | "url": "https://api.github.com/repos/prometheus/prometheus/releases/assets/39565295", 956 | "id": 39565295, 957 | "node_id": "MDEyOlJlbGVhc2VBc3NldDM5NTY1Mjk1", 958 | "name": "prometheus-2.28.1.openbsd-386.tar.gz", 959 | "label": "", 960 | "uploader": { 961 | "login": "prombot", 962 | "id": 18470668, 963 | "node_id": "MDQ6VXNlcjE4NDcwNjY4", 964 | "avatar_url": "https://avatars.githubusercontent.com/u/18470668?v=4", 965 | "gravatar_id": "", 966 | "url": "https://api.github.com/users/prombot", 967 | "html_url": "https://github.com/prombot", 968 | "followers_url": "https://api.github.com/users/prombot/followers", 969 | "following_url": "https://api.github.com/users/prombot/following{/other_user}", 970 | "gists_url": "https://api.github.com/users/prombot/gists{/gist_id}", 971 | "starred_url": "https://api.github.com/users/prombot/starred{/owner}{/repo}", 972 | "subscriptions_url": "https://api.github.com/users/prombot/subscriptions", 973 | "organizations_url": "https://api.github.com/users/prombot/orgs", 974 | "repos_url": "https://api.github.com/users/prombot/repos", 975 | "events_url": "https://api.github.com/users/prombot/events{/privacy}", 976 | "received_events_url": "https://api.github.com/users/prombot/received_events", 977 | "type": "User", 978 | "site_admin": false 979 | }, 980 | "content_type": "application/gzip", 981 | "state": "uploaded", 982 | "size": 67673205, 983 | "download_count": 30, 984 | "created_at": "2021-07-01T16:37:02Z", 985 | "updated_at": "2021-07-01T16:37:03Z", 986 | "browser_download_url": "https://github.com/prometheus/prometheus/releases/download/v2.28.1/prometheus-2.28.1.openbsd-386.tar.gz" 987 | }, 988 | { 989 | "url": "https://api.github.com/repos/prometheus/prometheus/releases/assets/39565303", 990 | "id": 39565303, 991 | "node_id": "MDEyOlJlbGVhc2VBc3NldDM5NTY1MzAz", 992 | "name": "prometheus-2.28.1.openbsd-amd64.tar.gz", 993 | "label": "", 994 | "uploader": { 995 | "login": "prombot", 996 | "id": 18470668, 997 | "node_id": "MDQ6VXNlcjE4NDcwNjY4", 998 | "avatar_url": "https://avatars.githubusercontent.com/u/18470668?v=4", 999 | "gravatar_id": "", 1000 | "url": "https://api.github.com/users/prombot", 1001 | "html_url": "https://github.com/prombot", 1002 | "followers_url": "https://api.github.com/users/prombot/followers", 1003 | "following_url": "https://api.github.com/users/prombot/following{/other_user}", 1004 | "gists_url": "https://api.github.com/users/prombot/gists{/gist_id}", 1005 | "starred_url": "https://api.github.com/users/prombot/starred{/owner}{/repo}", 1006 | "subscriptions_url": "https://api.github.com/users/prombot/subscriptions", 1007 | "organizations_url": "https://api.github.com/users/prombot/orgs", 1008 | "repos_url": "https://api.github.com/users/prombot/repos", 1009 | "events_url": "https://api.github.com/users/prombot/events{/privacy}", 1010 | "received_events_url": "https://api.github.com/users/prombot/received_events", 1011 | "type": "User", 1012 | "site_admin": false 1013 | }, 1014 | "content_type": "application/gzip", 1015 | "state": "uploaded", 1016 | "size": 71009321, 1017 | "download_count": 38, 1018 | "created_at": "2021-07-01T16:37:03Z", 1019 | "updated_at": "2021-07-01T16:37:05Z", 1020 | "browser_download_url": "https://github.com/prometheus/prometheus/releases/download/v2.28.1/prometheus-2.28.1.openbsd-amd64.tar.gz" 1021 | }, 1022 | { 1023 | "url": "https://api.github.com/repos/prometheus/prometheus/releases/assets/39565306", 1024 | "id": 39565306, 1025 | "node_id": "MDEyOlJlbGVhc2VBc3NldDM5NTY1MzA2", 1026 | "name": "prometheus-2.28.1.openbsd-arm64.tar.gz", 1027 | "label": "", 1028 | "uploader": { 1029 | "login": "prombot", 1030 | "id": 18470668, 1031 | "node_id": "MDQ6VXNlcjE4NDcwNjY4", 1032 | "avatar_url": "https://avatars.githubusercontent.com/u/18470668?v=4", 1033 | "gravatar_id": "", 1034 | "url": "https://api.github.com/users/prombot", 1035 | "html_url": "https://github.com/prombot", 1036 | "followers_url": "https://api.github.com/users/prombot/followers", 1037 | "following_url": "https://api.github.com/users/prombot/following{/other_user}", 1038 | "gists_url": "https://api.github.com/users/prombot/gists{/gist_id}", 1039 | "starred_url": "https://api.github.com/users/prombot/starred{/owner}{/repo}", 1040 | "subscriptions_url": "https://api.github.com/users/prombot/subscriptions", 1041 | "organizations_url": "https://api.github.com/users/prombot/orgs", 1042 | "repos_url": "https://api.github.com/users/prombot/repos", 1043 | "events_url": "https://api.github.com/users/prombot/events{/privacy}", 1044 | "received_events_url": "https://api.github.com/users/prombot/received_events", 1045 | "type": "User", 1046 | "site_admin": false 1047 | }, 1048 | "content_type": "application/gzip", 1049 | "state": "uploaded", 1050 | "size": 66463463, 1051 | "download_count": 31, 1052 | "created_at": "2021-07-01T16:37:05Z", 1053 | "updated_at": "2021-07-01T16:37:07Z", 1054 | "browser_download_url": "https://github.com/prometheus/prometheus/releases/download/v2.28.1/prometheus-2.28.1.openbsd-arm64.tar.gz" 1055 | }, 1056 | { 1057 | "url": "https://api.github.com/repos/prometheus/prometheus/releases/assets/39565308", 1058 | "id": 39565308, 1059 | "node_id": "MDEyOlJlbGVhc2VBc3NldDM5NTY1MzA4", 1060 | "name": "prometheus-2.28.1.openbsd-armv7.tar.gz", 1061 | "label": "", 1062 | "uploader": { 1063 | "login": "prombot", 1064 | "id": 18470668, 1065 | "node_id": "MDQ6VXNlcjE4NDcwNjY4", 1066 | "avatar_url": "https://avatars.githubusercontent.com/u/18470668?v=4", 1067 | "gravatar_id": "", 1068 | "url": "https://api.github.com/users/prombot", 1069 | "html_url": "https://github.com/prombot", 1070 | "followers_url": "https://api.github.com/users/prombot/followers", 1071 | "following_url": "https://api.github.com/users/prombot/following{/other_user}", 1072 | "gists_url": "https://api.github.com/users/prombot/gists{/gist_id}", 1073 | "starred_url": "https://api.github.com/users/prombot/starred{/owner}{/repo}", 1074 | "subscriptions_url": "https://api.github.com/users/prombot/subscriptions", 1075 | "organizations_url": "https://api.github.com/users/prombot/orgs", 1076 | "repos_url": "https://api.github.com/users/prombot/repos", 1077 | "events_url": "https://api.github.com/users/prombot/events{/privacy}", 1078 | "received_events_url": "https://api.github.com/users/prombot/received_events", 1079 | "type": "User", 1080 | "site_admin": false 1081 | }, 1082 | "content_type": "application/gzip", 1083 | "state": "uploaded", 1084 | "size": 65737353, 1085 | "download_count": 33, 1086 | "created_at": "2021-07-01T16:37:07Z", 1087 | "updated_at": "2021-07-01T16:37:08Z", 1088 | "browser_download_url": "https://github.com/prometheus/prometheus/releases/download/v2.28.1/prometheus-2.28.1.openbsd-armv7.tar.gz" 1089 | }, 1090 | { 1091 | "url": "https://api.github.com/repos/prometheus/prometheus/releases/assets/39565310", 1092 | "id": 39565310, 1093 | "node_id": "MDEyOlJlbGVhc2VBc3NldDM5NTY1MzEw", 1094 | "name": "prometheus-2.28.1.windows-386.tar.gz", 1095 | "label": "", 1096 | "uploader": { 1097 | "login": "prombot", 1098 | "id": 18470668, 1099 | "node_id": "MDQ6VXNlcjE4NDcwNjY4", 1100 | "avatar_url": "https://avatars.githubusercontent.com/u/18470668?v=4", 1101 | "gravatar_id": "", 1102 | "url": "https://api.github.com/users/prombot", 1103 | "html_url": "https://github.com/prombot", 1104 | "followers_url": "https://api.github.com/users/prombot/followers", 1105 | "following_url": "https://api.github.com/users/prombot/following{/other_user}", 1106 | "gists_url": "https://api.github.com/users/prombot/gists{/gist_id}", 1107 | "starred_url": "https://api.github.com/users/prombot/starred{/owner}{/repo}", 1108 | "subscriptions_url": "https://api.github.com/users/prombot/subscriptions", 1109 | "organizations_url": "https://api.github.com/users/prombot/orgs", 1110 | "repos_url": "https://api.github.com/users/prombot/repos", 1111 | "events_url": "https://api.github.com/users/prombot/events{/privacy}", 1112 | "received_events_url": "https://api.github.com/users/prombot/received_events", 1113 | "type": "User", 1114 | "site_admin": false 1115 | }, 1116 | "content_type": "application/gzip", 1117 | "state": "uploaded", 1118 | "size": 69567766, 1119 | "download_count": 31, 1120 | "created_at": "2021-07-01T16:37:09Z", 1121 | "updated_at": "2021-07-01T16:37:10Z", 1122 | "browser_download_url": "https://github.com/prometheus/prometheus/releases/download/v2.28.1/prometheus-2.28.1.windows-386.tar.gz" 1123 | }, 1124 | { 1125 | "url": "https://api.github.com/repos/prometheus/prometheus/releases/assets/39565311", 1126 | "id": 39565311, 1127 | "node_id": "MDEyOlJlbGVhc2VBc3NldDM5NTY1MzEx", 1128 | "name": "prometheus-2.28.1.windows-386.zip", 1129 | "label": "", 1130 | "uploader": { 1131 | "login": "prombot", 1132 | "id": 18470668, 1133 | "node_id": "MDQ6VXNlcjE4NDcwNjY4", 1134 | "avatar_url": "https://avatars.githubusercontent.com/u/18470668?v=4", 1135 | "gravatar_id": "", 1136 | "url": "https://api.github.com/users/prombot", 1137 | "html_url": "https://github.com/prombot", 1138 | "followers_url": "https://api.github.com/users/prombot/followers", 1139 | "following_url": "https://api.github.com/users/prombot/following{/other_user}", 1140 | "gists_url": "https://api.github.com/users/prombot/gists{/gist_id}", 1141 | "starred_url": "https://api.github.com/users/prombot/starred{/owner}{/repo}", 1142 | "subscriptions_url": "https://api.github.com/users/prombot/subscriptions", 1143 | "organizations_url": "https://api.github.com/users/prombot/orgs", 1144 | "repos_url": "https://api.github.com/users/prombot/repos", 1145 | "events_url": "https://api.github.com/users/prombot/events{/privacy}", 1146 | "received_events_url": "https://api.github.com/users/prombot/received_events", 1147 | "type": "User", 1148 | "site_admin": false 1149 | }, 1150 | "content_type": "application/zip", 1151 | "state": "uploaded", 1152 | "size": 70888326, 1153 | "download_count": 169, 1154 | "created_at": "2021-07-01T16:37:11Z", 1155 | "updated_at": "2021-07-01T16:37:12Z", 1156 | "browser_download_url": "https://github.com/prometheus/prometheus/releases/download/v2.28.1/prometheus-2.28.1.windows-386.zip" 1157 | }, 1158 | { 1159 | "url": "https://api.github.com/repos/prometheus/prometheus/releases/assets/39565314", 1160 | "id": 39565314, 1161 | "node_id": "MDEyOlJlbGVhc2VBc3NldDM5NTY1MzE0", 1162 | "name": "prometheus-2.28.1.windows-amd64.tar.gz", 1163 | "label": "", 1164 | "uploader": { 1165 | "login": "prombot", 1166 | "id": 18470668, 1167 | "node_id": "MDQ6VXNlcjE4NDcwNjY4", 1168 | "avatar_url": "https://avatars.githubusercontent.com/u/18470668?v=4", 1169 | "gravatar_id": "", 1170 | "url": "https://api.github.com/users/prombot", 1171 | "html_url": "https://github.com/prombot", 1172 | "followers_url": "https://api.github.com/users/prombot/followers", 1173 | "following_url": "https://api.github.com/users/prombot/following{/other_user}", 1174 | "gists_url": "https://api.github.com/users/prombot/gists{/gist_id}", 1175 | "starred_url": "https://api.github.com/users/prombot/starred{/owner}{/repo}", 1176 | "subscriptions_url": "https://api.github.com/users/prombot/subscriptions", 1177 | "organizations_url": "https://api.github.com/users/prombot/orgs", 1178 | "repos_url": "https://api.github.com/users/prombot/repos", 1179 | "events_url": "https://api.github.com/users/prombot/events{/privacy}", 1180 | "received_events_url": "https://api.github.com/users/prombot/received_events", 1181 | "type": "User", 1182 | "site_admin": false 1183 | }, 1184 | "content_type": "application/gzip", 1185 | "state": "uploaded", 1186 | "size": 71617768, 1187 | "download_count": 182, 1188 | "created_at": "2021-07-01T16:37:13Z", 1189 | "updated_at": "2021-07-01T16:37:14Z", 1190 | "browser_download_url": "https://github.com/prometheus/prometheus/releases/download/v2.28.1/prometheus-2.28.1.windows-amd64.tar.gz" 1191 | }, 1192 | { 1193 | "url": "https://api.github.com/repos/prometheus/prometheus/releases/assets/39565317", 1194 | "id": 39565317, 1195 | "node_id": "MDEyOlJlbGVhc2VBc3NldDM5NTY1MzE3", 1196 | "name": "prometheus-2.28.1.windows-amd64.zip", 1197 | "label": "", 1198 | "uploader": { 1199 | "login": "prombot", 1200 | "id": 18470668, 1201 | "node_id": "MDQ6VXNlcjE4NDcwNjY4", 1202 | "avatar_url": "https://avatars.githubusercontent.com/u/18470668?v=4", 1203 | "gravatar_id": "", 1204 | "url": "https://api.github.com/users/prombot", 1205 | "html_url": "https://github.com/prombot", 1206 | "followers_url": "https://api.github.com/users/prombot/followers", 1207 | "following_url": "https://api.github.com/users/prombot/following{/other_user}", 1208 | "gists_url": "https://api.github.com/users/prombot/gists{/gist_id}", 1209 | "starred_url": "https://api.github.com/users/prombot/starred{/owner}{/repo}", 1210 | "subscriptions_url": "https://api.github.com/users/prombot/subscriptions", 1211 | "organizations_url": "https://api.github.com/users/prombot/orgs", 1212 | "repos_url": "https://api.github.com/users/prombot/repos", 1213 | "events_url": "https://api.github.com/users/prombot/events{/privacy}", 1214 | "received_events_url": "https://api.github.com/users/prombot/received_events", 1215 | "type": "User", 1216 | "site_admin": false 1217 | }, 1218 | "content_type": "application/zip", 1219 | "state": "uploaded", 1220 | "size": 72542968, 1221 | "download_count": 6382, 1222 | "created_at": "2021-07-01T16:37:15Z", 1223 | "updated_at": "2021-07-01T16:37:16Z", 1224 | "browser_download_url": "https://github.com/prometheus/prometheus/releases/download/v2.28.1/prometheus-2.28.1.windows-amd64.zip" 1225 | }, 1226 | { 1227 | "url": "https://api.github.com/repos/prometheus/prometheus/releases/assets/39565318", 1228 | "id": 39565318, 1229 | "node_id": "MDEyOlJlbGVhc2VBc3NldDM5NTY1MzE4", 1230 | "name": "sha256sums.txt", 1231 | "label": "", 1232 | "uploader": { 1233 | "login": "prombot", 1234 | "id": 18470668, 1235 | "node_id": "MDQ6VXNlcjE4NDcwNjY4", 1236 | "avatar_url": "https://avatars.githubusercontent.com/u/18470668?v=4", 1237 | "gravatar_id": "", 1238 | "url": "https://api.github.com/users/prombot", 1239 | "html_url": "https://github.com/prombot", 1240 | "followers_url": "https://api.github.com/users/prombot/followers", 1241 | "following_url": "https://api.github.com/users/prombot/following{/other_user}", 1242 | "gists_url": "https://api.github.com/users/prombot/gists{/gist_id}", 1243 | "starred_url": "https://api.github.com/users/prombot/starred{/owner}{/repo}", 1244 | "subscriptions_url": "https://api.github.com/users/prombot/subscriptions", 1245 | "organizations_url": "https://api.github.com/users/prombot/orgs", 1246 | "repos_url": "https://api.github.com/users/prombot/repos", 1247 | "events_url": "https://api.github.com/users/prombot/events{/privacy}", 1248 | "received_events_url": "https://api.github.com/users/prombot/received_events", 1249 | "type": "User", 1250 | "site_admin": false 1251 | }, 1252 | "content_type": "text/plain; charset=utf-8", 1253 | "state": "uploaded", 1254 | "size": 3632, 1255 | "download_count": 3037, 1256 | "created_at": "2021-07-01T16:37:16Z", 1257 | "updated_at": "2021-07-01T16:37:17Z", 1258 | "browser_download_url": "https://github.com/prometheus/prometheus/releases/download/v2.28.1/sha256sums.txt" 1259 | } 1260 | ], 1261 | "tarball_url": "https://api.github.com/repos/prometheus/prometheus/tarball/v2.28.1", 1262 | "zipball_url": "https://api.github.com/repos/prometheus/prometheus/zipball/v2.28.1", 1263 | "body": "* [BUGFIX]: HTTP SD: Allow `charset` specification in `Content-Type` header. #8981\r\n* [BUGFIX]: HTTP SD: Fix handling of disappeared target groups. #9019\r\n* [BUGFIX]: Fix incorrect log-level handling after moving to go-kit/log. #9021\r\n", 1264 | "reactions": { 1265 | "url": "https://api.github.com/repos/prometheus/prometheus/releases/45574049/reactions", 1266 | "total_count": 19, 1267 | "+1": 2, 1268 | "-1": 0, 1269 | "laugh": 0, 1270 | "hooray": 0, 1271 | "confused": 0, 1272 | "heart": 0, 1273 | "rocket": 17, 1274 | "eyes": 0 1275 | } 1276 | } 1277 | --------------------------------------------------------------------------------