{"id":14985931,"url":"https://github.com/dhanushnehru/tryhackme-badge-action-workflow","last_synced_at":"2025-10-26T05:03:26.656Z","repository":{"id":250577124,"uuid":"834843663","full_name":"DhanushNehru/tryhackme-badge-action-workflow","owner":"DhanushNehru","description":"A github action for tryhackme to fetch and regenerate static badge image which can be used in the Readme","archived":false,"fork":false,"pushed_at":"2025-02-19T03:53:31.000Z","size":415,"stargazers_count":6,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-28T16:06:00.361Z","etag":null,"topics":["action","badge","cybersecurity","github","github-actions","githubworkflow","hacktoberfest","hacktoberfest-accepted","hacktoberfest2024-accepted","marketplace","marketplace-solution","readme","tryhackme","workflow","workflow-automation"],"latest_commit_sha":null,"homepage":"https://github.com/marketplace/actions/tryhackme-badge-action-workflow","language":"JavaScript","has_issues":true,"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/DhanushNehru.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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,"zenodo":null},"funding":{"github":["DhanushNehru"],"patreon":"dhanushnehru","open_collective":null,"ko_fi":"dhanushnehru","tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"lfx_crowdfunding":null,"polar":null,"buy_me_a_coffee":"dhanushnehru","thanks_dev":"dhanushnehru","custom":null}},"created_at":"2024-07-28T14:32:51.000Z","updated_at":"2025-02-20T08:05:12.000Z","dependencies_parsed_at":"2025-04-11T22:12:10.136Z","dependency_job_id":"a687ebed-b8e7-47a7-885f-a4602148474b","html_url":"https://github.com/DhanushNehru/tryhackme-badge-action-workflow","commit_stats":null,"previous_names":["dhanushnehru/tryhackme-badge-action-workflow"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/DhanushNehru/tryhackme-badge-action-workflow","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DhanushNehru%2Ftryhackme-badge-action-workflow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DhanushNehru%2Ftryhackme-badge-action-workflow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DhanushNehru%2Ftryhackme-badge-action-workflow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DhanushNehru%2Ftryhackme-badge-action-workflow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DhanushNehru","download_url":"https://codeload.github.com/DhanushNehru/tryhackme-badge-action-workflow/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DhanushNehru%2Ftryhackme-badge-action-workflow/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267543552,"owners_count":24104597,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-28T02:00:09.689Z","response_time":68,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["action","badge","cybersecurity","github","github-actions","githubworkflow","hacktoberfest","hacktoberfest-accepted","hacktoberfest2024-accepted","marketplace","marketplace-solution","readme","tryhackme","workflow","workflow-automation"],"created_at":"2024-09-24T14:11:58.177Z","updated_at":"2025-10-26T05:03:21.614Z","avatar_url":"https://github.com/DhanushNehru.png","language":"JavaScript","funding_links":["https://github.com/sponsors/DhanushNehru","https://patreon.com/dhanushnehru","https://ko-fi.com/dhanushnehru","https://buymeacoffee.com/dhanushnehru","https://thanks.dev/dhanushnehru"],"categories":[],"sub_categories":[],"readme":"# tryhackme-badge-action-workflow\nA github action for tryhackme to fetch and regenerate static badge image which can be used in the Readme\n\nThis is a GitHub Action that fetches your latest TryHackMe badge, downloads it, and commits it to your repository.\n\n### Features\n- Fetches the latest badge based on your TryHackMe user ID.\n- Downloads the badge image to a specified file path.\n- Commits the downloaded image to your repository with a custom message.\n- Allows setting a custom committer username.\n\n### Usage\n- Add this script to your GitHub repository as a .yml file (e.g., update-tryhackme-badge.yml).\n- Configure the action with the following inputs:\n    - GITHUB_TOKEN: Your GitHub Personal Access Token (required, set as a secret).\n    - image_path: The path to store the downloaded badge image (defaults to ./assets/tryhackme-badge.png).\n    - username: Your TryHackMe username (defaults to the value in a secret named THM_USERNAME).\n    - user_id: Your TryHackMe user ID (defaults to the value in a secret named THM_USER_ID). Eg) 1995656\n\n```\nname: Update TryHackMe Badge\n\non:\n  schedule:\n    - cron: '0 0 * * *' # Runs every day at midnight\n  workflow_dispatch: # Allows manual triggering\n\njobs:\n  update-badge:\n    runs-on: ubuntu-22.04\n\n    steps:\n    - name: Checkout repository\n      uses: actions/checkout@v2\n\n    - name: Configure Git Identity\n      run: |\n        git config --global user.name \"GitHub Actions Bot\"\n        git config --global user.email \"actions@github.com\"\n\n    - name: Fetch TryHackMe Badge\n      uses: DhanushNehru/tryhackme-badge-action-workflow@v1.0\n      with:\n        image_path: './assets/tryhackme-badge.png'\n        username: 'your_tryhackme_username'\n        user_id: 'your_tryhackme_user_id'\n        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdhanushnehru%2Ftryhackme-badge-action-workflow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdhanushnehru%2Ftryhackme-badge-action-workflow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdhanushnehru%2Ftryhackme-badge-action-workflow/lists"}