From 423d1e09dec0a166442b1c419306cf47bd4db61d Mon Sep 17 00:00:00 2001
From: Adar Nimrod <nimrod@shore.co.il>
Date: Wed, 17 Jan 2024 19:50:31 +0200
Subject: [PATCH] Update the GitHub token.

---
 .bashrc.d/github.j2  | 4 ++++
 .bashrc.d/private.j2 | 2 --
 2 files changed, 4 insertions(+), 2 deletions(-)
 create mode 100644 .bashrc.d/github.j2

diff --git a/.bashrc.d/github.j2 b/.bashrc.d/github.j2
new file mode 100644
index 0000000..c36dd6a
--- /dev/null
+++ b/.bashrc.d/github.j2
@@ -0,0 +1,4 @@
+# vim: ft=bash
+export GITHUB_TOKEN='{{ run(["ph", "show", "--field", "CLI2023 token", "Web Sites/GitHub"])["stdout"] }}'
+export GITHUB_OAUTH_TOKEN="$GITHUB_TOKEN"
+
diff --git a/.bashrc.d/private.j2 b/.bashrc.d/private.j2
index a710a90..74d1194 100644
--- a/.bashrc.d/private.j2
+++ b/.bashrc.d/private.j2
@@ -2,8 +2,6 @@
 export GITLAB_TOKEN='{{ run(["ph", "show", "--field", "Password", "shore.co.il/GitLab token"])["stdout"] }}'
 export GITLAB_PRIVATE_TOKEN="$GITLAB_TOKEN"
 export GITLAB_REGISTRATION_TOKEN='{{ run(["ph", "show", "--field", "Password", "shore.co.il/GitLab runner registration token"])["stdout"] }}'
-export GITHUB_TOKEN='{{ run(["ph", "show", "--field", "CLI2023 token", "Web Sites/GitHub"])["stdout"] }}'
-export GITHUB_OAUTH_TOKEN="$GITHUB_TOKEN"
 {% set nc_password = run(["ph", "show", "--field", "Password", "shore.co.il/LDAP"])["stdout"] -%}
 export RCLONE_CONFIG_NEXTCLOUD_PASS='{{ run(["rclone", "obscure", nc_password])["stdout"]|trim }}'
 export RCLONE_CONFIG_LIBRARY_PASS="$RCLONE_CONFIG_NEXTCLOUD_PASS"
-- 
GitLab