From a3599defd29ad2f543322679a14032dbde4f50fa Mon Sep 17 00:00:00 2001 From: ptaylor Date: Wed, 24 Jan 2024 02:38:19 -0800 Subject: [PATCH] inline github fingerprints --- features/src/utils/devcontainer-feature.json | 2 +- features/src/utils/install.sh | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/features/src/utils/devcontainer-feature.json b/features/src/utils/devcontainer-feature.json index e6c13cac..9096df9e 100644 --- a/features/src/utils/devcontainer-feature.json +++ b/features/src/utils/devcontainer-feature.json @@ -1,7 +1,7 @@ { "name": "devcontainer-utils", "id": "utils", - "version": "24.2.6", + "version": "24.2.7", "description": "A feature to install RAPIDS devcontainer utility scripts", "containerEnv": { "BASH_ENV": "/etc/bash.bash_env" diff --git a/features/src/utils/install.sh b/features/src/utils/install.sh index 06dde1ec..4681cd6a 100644 --- a/features/src/utils/install.sh +++ b/features/src/utils/install.sh @@ -1,5 +1,5 @@ #! /usr/bin/env bash -set -eo pipefail +set -e # Ensure we're in this feature's directory during build cd "$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"; @@ -104,10 +104,12 @@ append_to_all_bashrcs "$(cat .bashrc)"; # export envvars in /etc/profile.d add_etc_profile_d_script devcontainer-utils "$(cat .bashrc)"; -# Add GitHub's key fingerprints to known_hosts +# Add GitHub's key fingerprints to known_hosts (curl -s https://api.github.com/meta | jq -r '.ssh_keys | map("github.com \(.)") | .[]') # Add GitLab's key fingerprints to known_hosts (https://docs.gitlab.com/ee/user/gitlab_com/index.html#ssh-known_hosts-entries) known_hosts="$(cat <