Commit d4b9b8f
authored
Stop adding GitHub SSH keys (#171)
We need to fix the SSH keys shipped with this action:
https://github.blog/2023-03-23-we-updated-our-rsa-ssh-host-key/
But, we have another issue
(#108) with regards to host
keys: On self-hosted runners which are not ephemeral the known_host file
fills up with repeated entries, because every action run adds a new line
with the same host keys.
Also, on those machines, the old key will still be in the `known_hosts`
file.
IMHO this action should not be repsonsible for shipping SSH host keys,
that's too much responsibility.
This section in the code is a leftover from early days when GitHub
provided runners did not include SSH keys at all. For a long time
already, GH takes care of placing their SSH keys in their runner images.
For self-hosted runners, those people setting up the runner should fetch
and verify SSH keys themselves and put it into the `known_hosts` file.
I know this is a breaking change and is going to annoy users. But on the
other hand, there is no better opportunity to drop this feature than
with an emergency-style key revocation as today.
Closes #106, closes #129, closes #169, closes #170, closes #172.1 parent ea17a05 commit d4b9b8f
4 files changed
+73
-55
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
272 | 272 | | |
273 | 273 | | |
274 | 274 | | |
275 | | - | |
| 275 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
292 | 292 | | |
293 | 293 | | |
294 | 294 | | |
295 | | - | |
| 295 | + | |
296 | 296 | | |
297 | 297 | | |
298 | 298 | | |
299 | 299 | | |
| 300 | + | |
300 | 301 | | |
301 | | - | |
| 302 | + | |
302 | 303 | | |
303 | 304 | | |
304 | 305 | | |
| |||
310 | 311 | | |
311 | 312 | | |
312 | 313 | | |
313 | | - | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
314 | 330 | | |
315 | 331 | | |
316 | 332 | | |
| |||
1668 | 1684 | | |
1669 | 1685 | | |
1670 | 1686 | | |
1671 | | - | |
1672 | 1687 | | |
1673 | 1688 | | |
1674 | 1689 | | |
| |||
1698 | 1713 | | |
1699 | 1714 | | |
1700 | 1715 | | |
1701 | | - | |
1702 | | - | |
1703 | | - | |
1704 | | - | |
1705 | | - | |
1706 | | - | |
1707 | | - | |
1708 | | - | |
1709 | | - | |
1710 | | - | |
1711 | | - | |
1712 | | - | |
1713 | | - | |
| 1716 | + | |
1714 | 1717 | | |
| 1718 | + | |
1715 | 1719 | | |
1716 | 1720 | | |
1717 | 1721 | | |
| |||
1729 | 1733 | | |
1730 | 1734 | | |
1731 | 1735 | | |
1732 | | - | |
| 1736 | + | |
1733 | 1737 | | |
1734 | 1738 | | |
1735 | 1739 | | |
| |||
1769 | 1773 | | |
1770 | 1774 | | |
1771 | 1775 | | |
1772 | | - | |
| 1776 | + | |
| 1777 | + | |
| 1778 | + | |
| 1779 | + | |
1773 | 1780 | | |
1774 | 1781 | | |
1775 | 1782 | | |
| |||
1802 | 1809 | | |
1803 | 1810 | | |
1804 | 1811 | | |
| 1812 | + | |
| 1813 | + | |
| 1814 | + | |
| 1815 | + | |
1805 | 1816 | | |
1806 | | - | |
| 1817 | + | |
1807 | 1818 | | |
1808 | 1819 | | |
1809 | 1820 | | |
| |||
1932 | 1943 | | |
1933 | 1944 | | |
1934 | 1945 | | |
1935 | | - | |
| 1946 | + | |
| 1947 | + | |
| 1948 | + | |
| 1949 | + | |
| 1950 | + | |
1936 | 1951 | | |
1937 | 1952 | | |
1938 | 1953 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
292 | 292 | | |
293 | 293 | | |
294 | 294 | | |
295 | | - | |
| 295 | + | |
296 | 296 | | |
297 | 297 | | |
298 | 298 | | |
299 | 299 | | |
| 300 | + | |
300 | 301 | | |
301 | | - | |
| 302 | + | |
302 | 303 | | |
303 | 304 | | |
304 | 305 | | |
| |||
310 | 311 | | |
311 | 312 | | |
312 | 313 | | |
313 | | - | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
314 | 330 | | |
315 | 331 | | |
316 | 332 | | |
| |||
343 | 359 | | |
344 | 360 | | |
345 | 361 | | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | 362 | | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | 363 | | |
354 | 364 | | |
355 | 365 | | |
| |||
1755 | 1765 | | |
1756 | 1766 | | |
1757 | 1767 | | |
1758 | | - | |
1759 | 1768 | | |
1760 | 1769 | | |
1761 | 1770 | | |
| |||
1785 | 1794 | | |
1786 | 1795 | | |
1787 | 1796 | | |
1788 | | - | |
1789 | | - | |
1790 | | - | |
1791 | | - | |
1792 | | - | |
1793 | | - | |
1794 | | - | |
1795 | | - | |
1796 | | - | |
1797 | | - | |
1798 | | - | |
1799 | | - | |
1800 | | - | |
| 1797 | + | |
1801 | 1798 | | |
| 1799 | + | |
1802 | 1800 | | |
1803 | 1801 | | |
1804 | 1802 | | |
| |||
1816 | 1814 | | |
1817 | 1815 | | |
1818 | 1816 | | |
1819 | | - | |
| 1817 | + | |
1820 | 1818 | | |
1821 | 1819 | | |
1822 | 1820 | | |
| |||
1856 | 1854 | | |
1857 | 1855 | | |
1858 | 1856 | | |
1859 | | - | |
| 1857 | + | |
| 1858 | + | |
| 1859 | + | |
| 1860 | + | |
1860 | 1861 | | |
1861 | 1862 | | |
1862 | 1863 | | |
| |||
1889 | 1890 | | |
1890 | 1891 | | |
1891 | 1892 | | |
| 1893 | + | |
| 1894 | + | |
| 1895 | + | |
| 1896 | + | |
1892 | 1897 | | |
1893 | | - | |
| 1898 | + | |
1894 | 1899 | | |
1895 | 1900 | | |
1896 | 1901 | | |
| |||
2019 | 2024 | | |
2020 | 2025 | | |
2021 | 2026 | | |
2022 | | - | |
| 2027 | + | |
| 2028 | + | |
| 2029 | + | |
| 2030 | + | |
| 2031 | + | |
2023 | 2032 | | |
2024 | 2033 | | |
2025 | 2034 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | 26 | | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | 27 | | |
34 | 28 | | |
35 | 29 | | |
| |||
0 commit comments