Skip to content

Commit

Permalink
Adds hab user creation for the github actions
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Heath <[email protected]>
  • Loading branch information
jasonheath committed Dec 26, 2024
1 parent 5f2f2b6 commit 0d35910
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/actions/hab-install-linux/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ inputs:
curl-bash-url:
description: URL for the habitat curl bash script
required: true
default: 'https://raw.githubusercontent.com/habitat-sh/habitat/master/components/hab/install.sh'
default: "https://raw.githubusercontent.com/habitat-sh/habitat/master/components/hab/install.sh"
habitat-version:
description: Which version of habitat to use
required: true
Expand All @@ -22,6 +22,13 @@ inputs:
runs:
using: composite
steps:
- name: create hab user
shell: bash
run: |
sudo useradd --system --user-group --no-create-home hab
# Mirrors what's done our provision.sh script from on-prem-builder with
# the addition of the --user-group flag to make it more intentional. It
# should be functionally equivalent to what's done in provision.sh.
- name: install hab binary
shell: bash
Expand Down

0 comments on commit 0d35910

Please sign in to comment.