Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Open more actions menu

Repository files navigation

GitTools CI/CD Actions

Reusable GitHub composite actions for authentication, secret loading, and git automation.

Available Actions

checkout

Path: checkout

Authenticates via GitHub App credentials (loaded from 1Password) when running in the GitTools org (non-PR), creates an installation token, and checks out the repository.

Inputs:

  • op_service_account_token (optional): 1Password service account token.
  • fetch-depth (optional, default 0): Depth for actions/checkout.

github-app-creds

Path: github-app-creds

Loads GitHub App credentials from 1Password.

Inputs:

  • op_service_account_token (required): 1Password service account token.

Outputs:

  • gh_app_id
  • gh_app_private_key

tfx-creds

Path: tfx-creds

Loads TFX token from 1Password.

Inputs:

  • op_service_account_token (required): 1Password service account token.

Outputs:

  • tfx_token

nuget-creds

Path: nuget-creds

Loads NuGet API key from 1Password.

Inputs:

  • op_service_account_token (required): 1Password service account token.

Outputs:

  • nuget_api_key

choco-creds

Path: choco-creds

Loads Chocolatey API key from 1Password.

Inputs:

  • op_service_account_token (required): 1Password service account token.

Outputs:

  • choco_api_key

dockerhub-creds

Path: dockerhub-creds

Loads DockerHub credentials from 1Password.

Inputs:

  • op_service_account_token (required): 1Password service account token.

Outputs:

  • docker_username
  • docker_password

github-creds

Path: github-creds

Loads GitHub release token from 1Password.

Inputs:

  • op_service_account_token (required): 1Password service account token.

Outputs:

  • github_release_token

git-commit-push

Path: git-commit-push

Adds all changes, commits with the provided message, and force-pushes.

Inputs:

  • message (required): Commit message.

Example Usage

name: CI
on:
  workflow_dispatch:

jobs:
  demo:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout with GitHub App auth
        uses: gittools/cicd/checkout@main
        with:
          op_service_account_token: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}

      - name: Load TFX token
        id: tfx
        uses: gittools/cicd/tfx-creds@main
        with:
          op_service_account_token: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}

      - name: Load DockerHub credentials
        id: dockerhub
        uses: gittools/cicd/dockerhub-creds@main
        with:
          op_service_account_token: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}

      - name: Load GitHub release token
        id: github
        uses: gittools/cicd/github-creds@main
        with:
          op_service_account_token: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}

Notes

  • These actions depend on 1password/load-secrets-action@v3 where applicable.
  • Prefer version tags (for example @main) in production workflows once releases are cut.

About

Common GitHub action that can be re-used across GitTools repositories

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.