Skip to content

Commit 742d9b1

Browse files
committed
macos hab license accept
1 parent 19d701b commit 742d9b1

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

.github/workflows/cd-public-builder-grype-scan.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -180,19 +180,21 @@ jobs:
180180
- name: Install Chef Habitat
181181
run: |
182182
curl https://raw.githubusercontent.com/habitat-sh/habitat/main/components/hab/install.sh | sudo bash
183+
hab version
183184
184185
- name: Configure Habitat
185186
run: |
186187
# Add Habitat to PATH (for current session and future steps if needed, though install.sh usually handles symlinks)
187-
echo "/hab/bin" >> $GITHUB_PATH
188+
# echo "/hab/bin" >> $GITHUB_PATH
188189
189190
# Accept the license
190191
echo "HAB_LICENSE=accept-no-persist" >> $GITHUB_ENV
191-
192+
hab license accept
193+
192194
# Create the necessary directory structure for license file
193-
sudo chmod -R 777 /hab
194-
sudo mkdir -p /hab/accepted-licenses/
195-
sudo touch /hab/accepted-licenses/habitat
195+
# sudo chmod -R 777 /hab
196+
# sudo mkdir -p /hab/accepted-licenses/
197+
# sudo touch /hab/accepted-licenses/habitat
196198
197199
- name: Install Grype
198200
continue-on-error: true

0 commit comments

Comments
 (0)