Skip to content

ribbon-studios/refreshly

Repository files navigation

Simply a key rotation tool!~ ❤️

Docs

NPM Version NPM Downloads Coveralls CI Build

Code Style: Prettier Maintainability zx-bulk-release

Install

NPM

$ npm install @refreshly/core @refreshly/aws @refreshly/github

Yarn

$ yarn add @refreshly/core @refreshly/aws @refreshly/github

PNPM

$ pnpm add @refreshly/core @refreshly/aws @refreshly/github

Usage

import { Refreshly } from '@refreshly/core';
import { AWS } from '@refreshly/aws';
import { GitHub } from '@refreshly/github';

Refreshly(
  new AWS.Source({
    key: myAwsAccessKeyId, // process.env.AWS_ACCESS_KEY_ID
    secretKey: myAwsSecretAccessKey, // process.env.AWS_SECRET_ACCESS_KEY
    prefix: 'CI_ONLY_',
    targets: [
      new GitHub.Target({
        token: myGitHubToken, // process.env.GH_TOKEN || process.env.GITHUB_TOKEN
        orgs: ['ribbon-studios'],
      }),
    ],
  })
);