Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,9 @@ jobs:
- run:
name: Install-cf-cli
command: |
sudo mkdir -p /etc/apt/trusted.gpg.d
sudo wget -q -O /etc/apt/trusted.gpg.d/cloudfoundry-cli.gpg https://packages.cloudfoundry.org/debian/cli.cloudfoundry.org.key
echo "deb [signed-by=/etc/apt/trusted.gpg.d/cloudfoundry-cli.gpg] https://packages.cloudfoundry.org/debian stable main" | sudo tee /etc/apt/sources.list.d/cloudfoundry-cli.list
# Download and convert the GPG key to binary format for modern apt
Copy link

Copilot AI Dec 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The directory /usr/share/keyrings/ may not exist in all environments. The previous code created /etc/apt/trusted.gpg.d with mkdir -p before writing the key file. Consider adding a directory creation step before the gpg command to ensure reliability across different base images. For example: sudo mkdir -p /usr/share/keyrings before the wget/gpg command.

Suggested change
# Download and convert the GPG key to binary format for modern apt
# Download and convert the GPG key to binary format for modern apt
sudo mkdir -p /usr/share/keyrings

Copilot uses AI. Check for mistakes.
wget -q -O - https://packages.cloudfoundry.org/debian/cli.cloudfoundry.org.key | sudo gpg --dearmor -o /usr/share/keyrings/cloudfoundry-cli.gpg
echo "deb [signed-by=/usr/share/keyrings/cloudfoundry-cli.gpg] https://packages.cloudfoundry.org/debian stable main" | sudo tee /etc/apt/sources.list.d/cloudfoundry-cli.list
sudo apt-get update
sudo apt-get install -y cf8-cli
cf -v
Expand Down Expand Up @@ -183,9 +183,9 @@ jobs:
- run:
name: Install-cf-cli
command: |
# Install Cloud Foundry CLI repository key using modern signed-by mechanism
sudo wget -q -O /etc/apt/trusted.gpg.d/cloudfoundry-cli.gpg https://packages.cloudfoundry.org/debian/cli.cloudfoundry.org.key
echo "deb [signed-by=/etc/apt/trusted.gpg.d/cloudfoundry-cli.gpg] https://packages.cloudfoundry.org/debian stable main" | sudo tee /etc/apt/sources.list.d/cloudfoundry-cli.list
# Download and convert the GPG key to binary format for modern apt
Copy link

Copilot AI Dec 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The directory /usr/share/keyrings/ may not exist in all environments. The previous code created /etc/apt/trusted.gpg.d with mkdir -p before writing the key file. Consider adding a directory creation step before the gpg command to ensure reliability across different base images. For example: sudo mkdir -p /usr/share/keyrings before the wget/gpg command.

Suggested change
# Download and convert the GPG key to binary format for modern apt
# Download and convert the GPG key to binary format for modern apt
sudo mkdir -p /usr/share/keyrings

Copilot uses AI. Check for mistakes.
wget -q -O - https://packages.cloudfoundry.org/debian/cli.cloudfoundry.org.key | sudo gpg --dearmor -o /usr/share/keyrings/cloudfoundry-cli.gpg
echo "deb [signed-by=/usr/share/keyrings/cloudfoundry-cli.gpg] https://packages.cloudfoundry.org/debian stable main" | sudo tee /etc/apt/sources.list.d/cloudfoundry-cli.list
sudo apt-get update
sudo apt-get install -y cf8-cli
cf -v
Expand Down
Loading