Skip to content

Issue on docs - GitHub integration #4634

@Belkata

Description

@Belkata

Path: /integrations/cicd/githubactions

The documenation doesn't mention how to use the secrets once the integration is established. I can't seem to figure out how to use the secrets in github workflows.

I tried testing it like this:

name: Test Secret Workflow

on:
  workflow_dispatch:  # Manual trigger

jobs:
  test-secret:
    runs-on: ubuntu-latest
    
    steps:
      - name: Check Secret Value
        run: |
          # Mask the secret in logs by only showing length
          echo "Secret length: ${#SECRET_VALUE}"
          # Show first and last character only
          echo "Secret starts with '${SECRET_VALUE:0:1}' and ends with '${SECRET_VALUE: -1}'"
        env:
          SECRET_VALUE: ${{ secrets.ghost_db_password }}
Image Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions