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

github-actions-linter

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github-actions-linter

A parser/linter for GitHub workflows.

  • 2.7.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8
decreased by-73.33%
Maintainers
1
Weekly downloads
 
Created
Source

GitHubActions.js CircleCI

Provides linting APIs on the command line, through Node.js, and rich code editing through VSCode.

Using the NPM Package

https://www.npmjs.com/package/github-actions-linter

Add the package through npm/yarn:

$ npm i github-actions-linter
$ yarn add github-actions-linter

Run linter through Node.js:

import { lint } from "github-actions-linter";

const diagnostics = lint(code);
console.log(diagnostics.length + " errors were found.");

diagnostics.forEach(diagnostic => {
  console.log(diagnostic.message);
});

Or invoke through the CLI:

$ github-actions-linter file1.workflow file2.workflow

It will exit cleanly if no errors were found, or with a positive error code (number of errors) if any existed:

image

Keywords

FAQs

Package last updated on 01 May 2019

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