You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
@@ -1698,20 +1713,9 @@ function exportVariable(name, val) {
1698
1713
process.env[name]=convertedVal;
1699
1714
constfilePath=process.env['GITHUB_ENV']||'';
1700
1715
if(filePath){
1701
-
constdelimiter=`ghadelimiter_${uuid_1.v4()}`;
1702
-
// These should realistically never happen, but just in case someone finds a way to exploit uuid generation let's not allow keys or values that contain the delimiter.
1703
-
if(name.includes(delimiter)){
1704
-
thrownewError(`Unexpected input: name should not contain the delimiter "${delimiter}"`);
1705
-
}
1706
-
if(convertedVal.includes(delimiter)){
1707
-
thrownewError(`Unexpected input: value should not contain the delimiter "${delimiter}"`);
@@ -1785,20 +1794,9 @@ function exportVariable(name, val) {
1785
1794
process.env[name]=convertedVal;
1786
1795
constfilePath=process.env['GITHUB_ENV']||'';
1787
1796
if(filePath){
1788
-
constdelimiter=`ghadelimiter_${uuid_1.v4()}`;
1789
-
// These should realistically never happen, but just in case someone finds a way to exploit uuid generation let's not allow keys or values that contain the delimiter.
1790
-
if(name.includes(delimiter)){
1791
-
thrownewError(`Unexpected input: name should not contain the delimiter "${delimiter}"`);
1792
-
}
1793
-
if(convertedVal.includes(delimiter)){
1794
-
thrownewError(`Unexpected input: value should not contain the delimiter "${delimiter}"`);
0 commit comments