Skip to content

Commit

Permalink
chore: login chainctl
Browse files Browse the repository at this point in the history
Signed-off-by: Case Wylie <[email protected]>
  • Loading branch information
cmwylie19 committed Feb 18, 2025
1 parent c9c6944 commit 3982e66
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 9 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,18 @@ jobs:
# - name: Chainguard Login
# run: |
# chainctl auth login --identity "${{ secrets.CHAINGUARD_IDENTITY }}" --skip-browser
# - name: Chainguard Login
# uses: chainguard-dev/setup-chainctl@2302a56a61228140753b428d1018cb0d0addbec6 # v0.3.0
# with:
# identity: ${{ secrets.CHAINGUARD_IDENTITY }}
- name: Debug Identity Variable
run: |
if [[ -z "${{ secrets.CHAINGUARD_IDENTITY }}" ]]; then
echo "ERROR: CHAINGUARD_IDENTITY is missing!"
exit 1
else
echo "CHAINGUARD_IDENTITY is set."
fi
- name: Chainguard Login
uses: chainguard-dev/setup-chainctl@2302a56a61228140753b428d1018cb0d0addbec6 # v0.3.0
with:
identity: ${{ secrets.CHAINGUARD_IDENTITY }}
- run: npm ci
- run: ${{ matrix.journey-test }}
- run: ${{ matrix.journey-wasm-test }}
18 changes: 13 additions & 5 deletions .github/workflows/pepr-excellent-examples-unicorn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,7 @@ jobs:
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
with:
egress-policy: audit
- name: Chainguard Login
uses: chainguard-dev/setup-chainctl@2302a56a61228140753b428d1018cb0d0addbec6 # v0.3.0
with:
identity: ${{ secrets.CHAINGUARD_IDENTITY }}

- name: clone pepr
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
Expand Down Expand Up @@ -65,7 +62,18 @@ jobs:
# - name: Chainguard Login
# run: |
# chainctl auth login --identity "${{ secrets.CHAINGUARD_IDENTITY }}" --skip-browser

- name: Debug Identity Variable
run: |
if [[ -z "${{ secrets.CHAINGUARD_IDENTITY }}" ]]; then
echo "ERROR: CHAINGUARD_IDENTITY is missing!"
exit 1
else
echo "CHAINGUARD_IDENTITY is set."
fi
- name: Chainguard Login
uses: chainguard-dev/setup-chainctl@2302a56a61228140753b428d1018cb0d0addbec6 # v0.3.0
with:
identity: ${{ secrets.CHAINGUARD_IDENTITY }}
- name: build pepr package and container image
if: ${{ (github.event.inputs.kfcBranch || 'none') == 'none' }}
run: |
Expand Down

0 comments on commit 3982e66

Please sign in to comment.