diff --git a/README.md b/README.md
index 1fe15fc..fa79e97 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
# How to use APT
-wget -q -O - https://raw.githubusercontent.com/cloudfoundry/bosh-apt-resources/master/public.key | apt-key add -
+wget -q -O - https://raw.githubusercontent.com/cloudfoundry/bosh-apt-resources/HEAD/public.key | apt-key add -
echo "deb http://apt.ci.cloudfoundry.org stable main" | tee /etc/apt/sources.list.d/bosh-cloudfoundry.list
# Contribute
diff --git a/apt/index.html b/apt/index.html
index c37d2ad..28ce557 100644
--- a/apt/index.html
+++ b/apt/index.html
@@ -13,7 +13,7 @@
BOSH CloudFoundry APT repository
sudo apt install -y gnupg wget
# Import the CloudFoundry APT repo GPG key
-wget -q -O - https://raw.githubusercontent.com/cloudfoundry/bosh-apt-resources/master/public.key | sudo apt-key add -
+wget -q -O - https://raw.githubusercontent.com/cloudfoundry/bosh-apt-resources/HEAD/public.key | sudo apt-key add -
# Add the CloudFoundry APT repo
echo "deb http://apt.ci.cloudfoundry.org stable main" | sudo tee /etc/apt/sources.list.d/bosh-cloudfoundry.list
diff --git a/ci/pipeline.yml b/ci/pipeline.yml
index 61ef1d4..e34d780 100644
--- a/ci/pipeline.yml
+++ b/ci/pipeline.yml
@@ -116,7 +116,7 @@ resources:
- name: bosh-apt-resources
type: git
source:
- branch: master
+ branch: main
uri: https://github.com/cloudfoundry/bosh-apt-resources
- name: update-apt-index
diff --git a/rpm/index.html b/rpm/index.html
index 1ea9fda..75957d1 100644
--- a/rpm/index.html
+++ b/rpm/index.html
@@ -30,7 +30,7 @@ BOSH CloudFoundry RPM repository
baseurl=http://rpm.ci.cloudfoundry.org/
enabled=1
gpgcheck=1
-gpgkey=https://raw.githubusercontent.com/cloudfoundry/bosh-apt-resources/master/rpm-public.key
+gpgkey=https://raw.githubusercontent.com/cloudfoundry/bosh-apt-resources/HEAD/rpm-public.key
EOF
# Refresh metadata and install a package (example: cf-cli)