Skip to content

Commit d3fc60e

Browse files
authored
Merge pull request #299 from chef/boris-borisov-progress/CHEF-22787
Habitat authentication token
2 parents cbe2bf5 + 44a982a commit d3fc60e

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

.github/workflows/gem-build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,15 @@ jobs:
7474
HAB_ORIGIN: ci
7575
HAB_LICENSE: accept-no-persist
7676
FORCE_FFI_YAJL: ext
77+
HAB_AUTH_TOKEN: ${{ secrets.HAB_AUTH_TOKEN }}
7778
run: hab pkg build Habitat
7879
shell: powershell
7980
- name: Installing the 64-bit DLL's
8081
env:
8182
HAB_ORIGIN: ci
8283
HAB_LICENSE: accept-no-persist
8384
FORCE_FFI_YAJL: ext
85+
HAB_AUTH_TOKEN: ${{ secrets.HAB_AUTH_TOKEN }}
8486
run: |
8587
$project_root = $pwd
8688
. results/last_build.ps1

.github/workflows/manual-gem-build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,15 @@ jobs:
7070
HAB_ORIGIN: ci
7171
HAB_LICENSE: accept-no-persist
7272
FORCE_FFI_YAJL: ext
73+
HAB_AUTH_TOKEN: ${{ secrets.HAB_AUTH_TOKEN }}
7374
run: hab pkg build Habitat
7475
shell: powershell
7576
- name: Installing the 64-bit DLL's
7677
env:
7778
HAB_ORIGIN: ci
7879
HAB_LICENSE: accept-no-persist
7980
FORCE_FFI_YAJL: ext
81+
HAB_AUTH_TOKEN: ${{ secrets.HAB_AUTH_TOKEN }}
8082
run: |
8183
$project_root = $pwd
8284
. results/last_build.ps1

chef-powershell/lib/chef-powershell/powershell.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def initialize(script, timeout: -1)
5151
# @return [Boolean]
5252
#
5353
def error?
54-
return true if errors.count > 0
54+
return true if errors.any?
5555

5656
false
5757
end

0 commit comments

Comments
 (0)