Skip to content

Commit

Permalink
Mask token in gh workflows
Browse files Browse the repository at this point in the history
Signed-off-by: Mario Loriedo <mario.loriedo@gmail.com>
  • Loading branch information
l0rd committed Mar 14, 2024
1 parent 628673d commit 67a6e4c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/golang-vscode-startup.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
name: golang-vscode-startup

on:
# workflow_run:
# workflows: [golang-build]
# branches: [main]
# types:
# - completed
workflow_dispatch:
inputs:
sandboxToken:
Expand All @@ -17,15 +12,16 @@ env:
CLOUD_DEV_IMAGE: quay.io/mloriedo/cloud-dev-images:golang
EDITOR_IMAGE: quay.io/che-incubator/che-code:insiders
CLUSTER_URL: https://api.sandbox-m2.ll9k.p1.openshiftapps.com:6443
CLUSTER_TOKEN: ${{ inputs.sandboxToken }}

jobs:
vscode-startup:
runs-on: ubuntu-latest
steps:
- name: Add Mask
run: echo "::add-mask::${{ inputs.sandboxToken }}"
- name: Checkout
uses: actions/checkout@v4
- name: Login to Dev Sandbox
run: oc login --token=${{ env.CLUSTER_TOKEN }} --server=${{ env.CLUSTER_URL }}
run: oc login --token=${{ inputs.sandboxToken }} --server=${{ env.CLUSTER_URL }}
- name: Run Test
run: ${PWD}/__tests__/test-editor-startup-in-image.sh
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Cloud Dev Images

A list of `Dockerfilez`, using different base images, to customize Eclipe Che and OpenShift Dev Spaces Cloud Development Environments.
A list of `Dockerfiles`, using different base images, to customize Eclipe Che and OpenShift Dev Spaces Cloud Development Environments.

| | | | | |
|------------|------------|-------------|-----------------|--------|
Expand Down

0 comments on commit 67a6e4c

Please sign in to comment.