{"id":16805279,"url":"https://github.com/joshjohanning/revoke-github-ssh-key-sso-authorization","last_synced_at":"2026-05-20T06:05:10.160Z","repository":{"id":223728732,"uuid":"761353607","full_name":"joshjohanning/revoke-github-ssh-key-sso-authorization","owner":"joshjohanning","description":"GitHub Action to revoke the SSO authorization for SSH keys against an organization","archived":false,"fork":false,"pushed_at":"2024-02-21T19:44:35.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-23T19:16:58.209Z","etag":null,"topics":["actions","administration","automation","github","ssh-keys"],"latest_commit_sha":null,"homepage":"","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/joshjohanning.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-02-21T17:57:55.000Z","updated_at":"2024-02-21T19:07:09.000Z","dependencies_parsed_at":"2024-02-21T19:50:03.399Z","dependency_job_id":null,"html_url":"https://github.com/joshjohanning/revoke-github-ssh-key-sso-authorization","commit_stats":null,"previous_names":["joshjohanning/revoke-github-ssh-key-sso-authorization"],"tags_count":2,"template":false,"template_full_name":"joshjohanning/enforce-github-pat-expiration","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshjohanning%2Frevoke-github-ssh-key-sso-authorization","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshjohanning%2Frevoke-github-ssh-key-sso-authorization/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshjohanning%2Frevoke-github-ssh-key-sso-authorization/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshjohanning%2Frevoke-github-ssh-key-sso-authorization/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joshjohanning","download_url":"https://codeload.github.com/joshjohanning/revoke-github-ssh-key-sso-authorization/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244011499,"owners_count":20383423,"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","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":["actions","administration","automation","github","ssh-keys"],"created_at":"2024-10-13T09:47:42.872Z","updated_at":"2026-05-20T06:05:05.117Z","avatar_url":"https://github.com/joshjohanning.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# revoke-github-ssh-key-sso-authorization\n\nRevokes the SSO authorization for SSH keys against a GitHub organization. This can help enforce that the HTTPS git protocol be used instead of SSH.\n\n\u003e [!IMPORTANT]\n\u003e This action will only work in organizations that have configured SAML SSO.\n\n## Sample Usage\n\n```yml\nname: ⛔️ Revoke SSH key authorization policy\non:\n  schedule:\n    - cron: 0,5 * * * * # runs every 5 mins\n  workflow_dispatch:\n\njobs:\n  revoke-ssh-keys:\n    runs-on: ubuntu-latest\n    steps:\n    - uses: actions/create-github-app-token@v1\n      id: app-token\n      with:\n        app-id: ${{ vars.APP_ID }} # use an app with `organization: admin write` permissions\n        private-key: ${{ secrets.PRIVATE_KEY }}\n        owner: ${{ github.repository_owner }}\n    - name: Check and Revoke SSH keys\n      uses: joshjohanning/revoke-github-ssh-key-sso-authorization@v1\n      with:\n        organization: ${{ github.repository_owner }}\n        github-token: ${{ steps.app-token.outputs.token }} # use a PAT with `admin:org` permissions or a GitHub app token with org admin write permissions\n        dry-run: false # change to true to not revoke any SSH keys\n        create-issue: false # change to true to create an issue and assign to the user whose SSH key is being revoked (can't be used with dry-run)\n        issue-repo: ${{ github.repository }} # if create-issue is true, repo to create the issue in\n```\n\n## Sample Screenshots\n\nHere's an example of what the SSH key looks like before and after it has been revoked.\n\n### SSH key authorized to organization\n\n![SSH key with SSO authorization to org](https://github.com/joshjohanning-org/revoke-github-ssh-key-sample/assets/19912012/893ec157-3792-47f6-9987-7bf11bc01dbb)\n\n### SSH key with authorization revoked to organization\n\n![SSH key with SSO authorization to an org removed](https://github.com/joshjohanning-org/revoke-github-ssh-key-sample/assets/19912012/36c585cd-2250-498b-8bac-552947e88acf)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoshjohanning%2Frevoke-github-ssh-key-sso-authorization","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoshjohanning%2Frevoke-github-ssh-key-sso-authorization","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoshjohanning%2Frevoke-github-ssh-key-sso-authorization/lists"}