philips-labs / iam-service-login

Simple tool to login into IAM using a service account

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IAM Service login action

Description

Login to IAM using service credentials

Inputs

parameter description required default
service-id The IAM service id true notset
private-key The IAM service RSA private key true notset
region The IAM region to log into true us-east
environment The IAM environment to log into true client-test

Outputs

parameter description
token The IAM token
message An informational message about the request

Runs

This action is an docker action.

Example usage

on: [push]

name: test service tokens

jobs:
  test_token:
    name: Test service tokens
    runs-on: ubuntu-latest

    steps:
      - uses: philips-labs/iam-service-login@v1
        id: service
        with:
          region: us-east
          environment: client-test
          service-id: ${{ secrets.SERVICE_ID }}
          private-key: ${{ secrets.PRIVATE_KEY }}
      - name: Output masked token
        run: echo "The token is ${{ steps.service.outputs.token }}"

About

Simple tool to login into IAM using a service account

License:MIT License


Languages

Language:Go 84.7%Language:Dockerfile 15.3%