{"id":25203755,"url":"https://github.com/threatcode/automation","last_synced_at":"2026-02-12T15:06:23.999Z","repository":{"id":199509043,"uuid":"703059269","full_name":"threatcode/automation","owner":"threatcode","description":null,"archived":false,"fork":false,"pushed_at":"2023-10-10T14:30:34.000Z","size":23,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-04T22:44:02.201Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/threatcode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-10-10T14:14:32.000Z","updated_at":"2023-10-10T14:14:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"acee3ae9-a08d-475e-9663-f43ed372785f","html_url":"https://github.com/threatcode/automation","commit_stats":null,"previous_names":["threatcode/automation"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/threatcode/automation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/threatcode%2Fautomation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/threatcode%2Fautomation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/threatcode%2Fautomation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/threatcode%2Fautomation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/threatcode","download_url":"https://codeload.github.com/threatcode/automation/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/threatcode%2Fautomation/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271400259,"owners_count":24752830,"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-08-20T02:00:09.606Z","response_time":69,"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":[],"created_at":"2025-02-10T07:18:32.176Z","updated_at":"2026-02-12T15:06:18.957Z","avatar_url":"https://github.com/threatcode.png","language":null,"readme":"# ThreatCode Automation Tools\n\nThis repository contains GitHub Action workflows that are shared across repos in the `threatcode` GitHub org.\n\n\u003e **Warning**  \n\u003e These workflows are not designed for use _outside_ of the `threatcode` GitHub org.\n\n## [`congratsbot.yml`](./.github/workflows/congratsbot.yml)\n\nThis workflow posts a celebratory message in a Discord channel of your choice for each commit. For example:\n\n\u003e 🎊 **Merged!** Houston (Bot): [`[ci] release (#232)`](#)  \n\u003e _Featuring contributions by github-actions[bot]! 🌟_\n\n### Prerequisites\n\n[Create a new Discord webhook](https://support.discord.com/hc/en-us/articles/228383668-Intro-to-Webhooks) and add the URL to your repository secrets as `DISCORD_WEBHOOK_CONGRATS`.\n\n### Usage\n\n```yml\nname: Congratsbot\n\non:\n  push:\n    branches: [main]\n\njobs:\n  congrats:\n    if: ${{ github.repository_owner == 'threatcode' }}\n    uses: threatcode/automation/.github/workflows/congratsbot.yml@main\n    secrets:\n      DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_CONGRATS }}\n```\n\n### Optional inputs\n\nYou can customize the emojis and co-author message templates to give your repository its own personality. You can set these under `with` in your job:\n\n```yml\njobs:\n  congrats:\n    if: ${{ github.repository_owner == 'threatcode' }}\n    uses: threatcode/automation/.github/workflows/congratsbot.yml@main\n    with:\n      EMOJIS: 🤖,👻,😱\n      COAUTHOR_TEMPLATES: \u003e\n        [\n          \"Woahhh, \u003cnames\u003e really gave us a fright! 🎃\",\n          \"We weren’t sure what we were doing until \u003cnames\u003e showed up. 🤝\"\n        ]\n    secrets:\n      DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_CONGRATS }}\n```\n\n#### `EMOJIS`\n\n**default:** `🎉,🎊,🧑‍🚀,🥳,🙌,🚀`\n\nA comma-delimited set of emojis.\nEach congrats bot message will pick one at random for the start of the message.\n\n#### `COAUTHOR_TEMPLATES`\n\n**default:** see [`congratsbot.yml`](./.github/workflows/congratsbot.yml#L31)\n\nA JSON array of co-author recognition templates.\nEach template should contain the `\u003cnames\u003e` placeholder to be replaced by the names of one or more co-authors for this commit.\n(Ignored for commits without any co-authors.)\n\nWhen writing congrats messages, remember that `\u003cnames\u003e` could be one, two, or more names. So, create messages that can work for both a single co-author and for several people, for example, \"This PR was made even better by `\u003cnames\u003e`!\"\n\n## [`format.yml`](./.github/workflows/format.yml)\n\nThis workflow runs a repository’s code formatting tooling (e.g. Prettier) and commits any resulting changes directly.\n\n### Usage\n\n```yml\nname: Format\n\non:\n  workflow_dispatch:\n  push:\n    branches:\n      - main\n\njobs:\n  prettier:\n    if: github.repository_owner == 'threatcode'\n    uses: threatcode/automation/.github/workflows/format.yml@main\n    with:\n      # Set command to this repository’s package script that runs Prettier\n      command: 'format:ci'\n    secrets: inherit\n```\n\n## [`lockfile.yml`](./.github/workflows/lockfile.yml)\n\nThis workflow updates a repository’s `pnpm-lock.yaml` and opens a PR with the changes if there are any.\n\n### Usage\n\n```yml\nname: Nightly\n\non:\n  workflow_dispatch:\n  schedule:\n    # Run every Monday at 12:00 UTC\n    - cron: '0 12 * * 1'\n\njobs:\n  lockfile:\n    if: github.repository_owner == 'threatcode'\n    uses: threatcode/automation/.github/workflows/lockfile.yml@main\n    secrets: inherit\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthreatcode%2Fautomation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthreatcode%2Fautomation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthreatcode%2Fautomation/lists"}