Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@action-badges/core

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@action-badges/core - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

CHANGELOG.md

4

package.json
{
"name": "@action-badges/core",
"version": "0.1.0",
"version": "0.1.1",
"description": "Create SVG badges with GitHub actions",

@@ -23,3 +23,3 @@ "main": "src/index.js",

"@actions/core": "^1.2.7",
"@actions/github": "^4.0.0",
"@actions/github": "^5.0.0",
"badge-maker": "^3.3.0"

@@ -26,0 +26,0 @@ },

@@ -1,3 +0,19 @@

# TODO
# action-badges/core
Serverless badge generation with Github Actions
[![Run tests](https://github.com/action-badges/core/actions/workflows/test.yml/badge.svg?branch=main)](https://github.com/action-badges/core/actions/workflows/test.yml) [![Build Dist](https://github.com/action-badges/core/actions/workflows/build-dist.yml/badge.svg?branch=main)](https://github.com/action-badges/core/actions/workflows/build-dist.yml)
Action badges allows you to create custom badges using github actions and host them in your own github repo.
Unlike centralized services like [shields.io](https://shields.io/) and [badgen.net](https://badgen.net/), action badges can be used to:
- Generate badges using content in private repositories without hosting and maintaining your own instance of shields or badgen
- Make badges that need private tokens or secrets to generate the content
- Make badges that are slow to compute or rely on data that is not available from a HTTP API
- Generate badges without contacting any external services: compute is handled by github actions, badges are stored in github repo
There are two ways to use action-badges/core. It can be used directly as a Github Action to generate badges with yaml workflows or as an NPM library to create re-usable javascript actions.
- [Github Action](https://github.com/action-badges/core/blob/main/docs/github-action.md)
- [NPM Package](https://github.com/action-badges/core/blob/main/docs/npm-package.md)

@@ -25,3 +25,3 @@ "use strict";

try {
const resp = await client.repos.getContent({
const resp = await client.rest.repos.getContent({
owner,

@@ -57,3 +57,3 @@ repo,

if (content !== existingFile.content) {
await client.repos.createOrUpdateFileContents(payload);
await client.rest.repos.createOrUpdateFileContents(payload);
return true;

@@ -60,0 +60,0 @@ }

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