Skip to content
This repository has been archived by the owner on Mar 15, 2024. It is now read-only.

philips-labs/iam-service-login

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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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