Files
Workflow config file is invalid. Please check your config file: invalid jobs: input node is not a mapping node
Joshua Hoblitt 48dacb1894 ci: fix shellcheck issues in composite actions
actionlint only understands workflow files, so the .github/actionlint.yaml
ignore keeps the composite action definitions out of `make lint.workflows`.
Apply the same shellcheck fixes there anyway, found by running shellcheck over
their run: blocks directly:

- quote unquoted variable expansions (SC2086): the $GITHUB_ENV writes in
  collect-logs, tmate_debug and upterm_debug, and ${ARCH} in the cri-dockerd
  install in integration-test-setup-cluster-resources
- split `export BLOCK=$(...)` into a separate assignment and export so a
  failing command substitution is not masked (SC2155) in
  encryption-pvc-kms-ibm-kp

Signed-off-by: Joshua Hoblitt <josh@hoblitt.com>
2026-06-22 16:04:55 -07:00

30 lines
1.2 KiB
YAML

name: "Upterm debugging tests"
description: "Setup an upterm session for interactive debugging of failing tests"
inputs:
debug-ci:
description: "boolean for debug-ci label in PR"
required: false
runs:
using: "composite"
steps:
- name: consider upterm debugging
shell: bash --noprofile --norc -eo pipefail -x {0}
if: runner.debug || inputs.debug-ci == 'true'
run: |
# Enable upterm only in the main Rook repo, where the USE_TMATE secret is set in the repo, or if the action is re-run
if [ "$GITHUB_REPOSITORY_OWNER" = "rook" ] || [ "$GITHUB_RUN_ATTEMPT" -gt 1 ]; then
echo ENABLE_UPTERM=1 >> "$GITHUB_ENV"
fi
- name: set up upterm session
if: ${{ env.ENABLE_UPTERM }}
uses: owenthereal/action-upterm@f26ebc11e22a09b8365f39d2cdafd06f63b42053 # v1.14.0
with:
# detached: true
## whether to limit ssh access and adds the ssh public key for the user which triggered the workflow:
## detached is not implemented (yet?)
## see: https://github.com/owenthereal/action-upterm/issues/12
limit-access-to-actor: false
## If no one connects within five minutes, shut down the server.
wait-timeout-minutes: 5