Skip to content

BigTows/yc-token

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Yandex.Cloud token generator

Action for GitHub, which helps generate tokens of Yandex Cloud. Current supported token's:

Example's of usage

  • In same job
    - name: Create IAM token
      id: generation-iam-token
      uses: bigtows/yc-token@latest
      with:
        service-account-token: ${{ secrets.SERVICE_ACCOUNT_TOKEN }}
        type-token: iam
    - name: Test
      run: echo ${{ steps.generation-iam-token.outputs.iam-token }}
  • Getting value from another job
generate-token:
  runs-on: ubuntu-latest
  outputs:
    iam-token: ${{ steps.generation-iam-token.outputs.iam-token }}
  steps:
    - uses: actions/checkout@v2
    - name: Create IAM token
      id: generation-iam-token
      uses: bigtows/yc-token@latest
      with:
        service-account-token: ${{ secrets.SERVICE_ACCOUNT_TOKEN }}
        type-token: iam
another-job:
  runs-on: ubuntu-latest
  steps:
    - name: Echo IAM
      run:  echo ${{ needs.generate-token.outputs.iam-token }}

About how create secrets.SERVICE_ACCOUNT_TOKEN you can find here (--output key.json)

Based on template actions/typescript-action

About

Action of GitHub for generate Yandex.Cloud tokens

Resources

License

Stars

Watchers

Forks

Packages

No packages published