Skip to content

Bytebase Login

Actions
Login to your Bytebase service
0.0.2
Latest
Verified creator
Star (0)

Verified

GitHub has manually verified the creator of the action as an official partner organization. For more info see About badges in GitHub Marketplace.

Bytebase Login Action

Use this action to log in to your Bytebase server in the GitHub CI.

Usage Example

on:
  push:
    branches:
      - main
  workflow_dispatch:
  pull_request:

jobs:
  bytebase-ci:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - name: Login Bytebase
        id: bytebase-login
        uses: bytebase/login-action@main
        with:
          bytebase-url: ${{ secrets.BYTEBASE_URL }}
          service-key: ${{ secrets.BYTEBASE_SERVICE_KEY }}
          service-secret: ${{ secrets.BYTEBASE_SERVICE_SECRET }}
      - name: List projects
        run: |
          curl "${{ steps.bytebase-login.outputs.api_url }}/projects" \
            -H 'Authorization: Bearer ${{ steps.bytebase-login.outputs.token }}' \
            -H 'Content-Type: application/json; charset=utf-8'

Outputs

  • token: Login result, the service account token.
  • api_url: Bytebase API URL with version.

Bytebase Login is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Login to your Bytebase service
0.0.2
Latest

Verified

GitHub has manually verified the creator of the action as an official partner organization. For more info see About badges in GitHub Marketplace.

Bytebase Login is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.