Skip to content
at-sign

GitHub Action

IAM Service login

v1.1.0 Latest version

IAM Service login

at-sign

IAM Service login

Login to IAM using service credentials

Installation

Copy and paste the following snippet into your .yml file.

              

- name: IAM Service login

uses: philips-labs/iam-service-login@v1.1.0

Learn more about this action in philips-labs/iam-service-login

Choose a version

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 }}"