New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@aws/codecatalyst-workflows-sdk

Package Overview
Dependencies
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws/codecatalyst-workflows-sdk

This is the codecatalysts workflow sdk. This defines the workflow configuration a for codecatalyst project.

  • 0.1.5-preview.6
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
2.4K
decreased by-20.22%
Maintainers
2
Weekly downloads
 
Created
Source

CodeCatalyst Workflows SDK

Description

A JavaScript SDK for CodeCatalyst Workflows.

This SDK is meant to aid users in creating Amazon CodeCatalyst Workflows by providing a client to syntactically validate a workflow yaml prior to committing the file.

Installing

To install this package, simply type add or install @aws/codecatalyst-workflows-sdk using your favorite package manager:

npm install @aws/codecatalyst-workflows-sdk
yarn add @aws/codecatalyst-workflows-sdk
pnpm add @aws/codecatalyst-workflows-sdk

Getting Started

Import

To start using the sdk to validate your workflow yaml files import the WorkflowDefinition Module from the client

// es5 example
const { WorkflowDefinition } = require("@aws/codecatalyst-workflows-sdk");
//es6 example
const { WorkflowDefinition } = require("@aws/codecatalyst-workflows-sdk");

Usage

To validate your workflow yaml file use the validate command on the WorkflowDefinition class. An example can be found below

const { WorkflowDefinition } = require("@aws/codecatalyst-workflows-sdk");
const { load } = require("js-yaml");

const workflowYaml = `
Name: PushWorkflow
SchemaVersion: 1.0
Triggers:
  - Type: PULLREQUEST
    Events:
      - "DRAFT"
Actions:
  BackendBuildAndPackage:
    Identifier: aws/build@v1
    Inputs:
      Sources:
        - WorkflowSource
    Outputs:
      Artifacts:
        - Name: backend
          Files:
            - "**/*"
    Configuration:
      Steps:
        - Run: echo "Building Backend Artifacts..."
`

const validationResult = WorkflowDefinition.validate(load(workflowYaml))

Actions that are supported

  • aws/build@v1
  • aws/managed-test@v1
  • aws/github-actions-runner@v1

License

This SDK is distributed under the Apache License, Version 2.0, see LICENSE for more information.

FAQs

Package last updated on 17 Nov 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc