{"id":41587929,"url":"https://github.com/botify-labs/profilecli-action","last_synced_at":"2026-01-24T09:09:32.531Z","repository":{"id":286611823,"uuid":"943377853","full_name":"botify-labs/profilecli-action","owner":"botify-labs","description":null,"archived":false,"fork":false,"pushed_at":"2025-07-02T06:46:12.000Z","size":4,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-07-02T07:42:06.663Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/botify-labs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-05T15:59:37.000Z","updated_at":"2025-03-05T16:03:45.000Z","dependencies_parsed_at":"2025-04-07T13:42:14.808Z","dependency_job_id":null,"html_url":"https://github.com/botify-labs/profilecli-action","commit_stats":null,"previous_names":["botify-labs/profilecli-action"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/botify-labs/profilecli-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/botify-labs%2Fprofilecli-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/botify-labs%2Fprofilecli-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/botify-labs%2Fprofilecli-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/botify-labs%2Fprofilecli-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/botify-labs","download_url":"https://codeload.github.com/botify-labs/profilecli-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/botify-labs%2Fprofilecli-action/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28722228,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-24T08:27:05.734Z","status":"ssl_error","status_checked_at":"2026-01-24T08:27:01.197Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-24T09:09:31.598Z","updated_at":"2026-01-24T09:09:32.520Z","avatar_url":"https://github.com/botify-labs.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# profilecli-action\n\nA GitHub Action to download and commit a PGO profile using\n[profilecli](https://grafana.com/docs/pyroscope/latest/view-and-analyze-profile-data/profile-cli/).\n\n## Prerequisites\n\n- On your repository, go to Settings \u003e Actions \u003e General and check\n  `Allow GitHub Actions to create and approve pull requests`\n\n- `GH_TOKEN` must be set in your workflow environment:\n  ```yaml\n  env:\n    GH_TOKEN: ${{ github.token }}\n  ```\n\n## Usage example\n\n```yaml\nname: Profiling\n\non:\n  schedule:\n    - cron: \"0 8 * * 1\" # every Monday at 08:00am\n\nenv:\n  GH_TOKEN: ${{ github.token }} # required\n\npermissions:\n  contents: write\n  pull-requests: write\n\njobs:\n  profiling:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v3\n\n      - name: Download profile\n        uses: botify-labs/profilecli-action@v1\n        with:\n          endpoint: https://example.com/my-endpoint\n          username: ${{ secrets.PROFILING_USERNAME }}\n          password: ${{ secrets.PROFILING_PASSWORD }}\n          query: '{service_name=\"\u003cmy-service\u003e\"}'\n          output_path: default.pgo\n          range_from: now-24h\n          range_to: now\n```\n\n## Parameters\n\n| Name                 | Default value                               | Description                                             |\n| -------------------- | ------------------------------------------- | ------------------------------------------------------- |\n| `endpoint`\\*         | -                                           | API endpoint to fetch profiling data.                   |\n| `query`\\*            | -                                           | Query used to filter profiling data.                    |\n| `username`\\*         | -                                           | Username for authentication.                            |\n| `password`\\*         | -                                           | Password for authentication.                            |\n| `output_path`        | `default.pgo`                               | File path to save the profile output.                   |\n| `range_from`         | `now-24h`                                   | Start time for the profiling range.                     |\n| `range_to`           | `now`                                       | End time for the profiling range.                       |\n| `profile_type`       | `process_cpu:samples:count:cpu:nanoseconds` | Type of profile to fetch and analyze.                   |\n| `profilecli_version` | `\"1.1.5\"`                                   | Version of profilecli to use.                           |\n| `pr_title`           | `\"Generate Go profile\"`                     | Title for the pull request that will be created.        |\n| `pr_body`            | `\"Autogenerated profile update.\"`           | Body content for the pull request that will be created. |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbotify-labs%2Fprofilecli-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbotify-labs%2Fprofilecli-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbotify-labs%2Fprofilecli-action/lists"}