A GitHub action to generate a stackaid.json file based on your repository's dependency graph

Overview

build-test

generate-stackaid-json

A GitHub action to generate a stackaid.json file based on your repository's dependency graph

This action is primarily intended to support funding your dependencies on StackAid for ecosystems that are not yet natively supported (eg: Go, PHP, Python, etc.).

By using the GitHub dependency graph API this action is able to discover your direct and indirect dependencies and generate a stackaid.json file which can then be discovered and used by StackAid to fund your dependencies.

Here's an example workflow to add to your repository:

name: 'fund-on-stackaid'
on:
  push:
    branches:
      - main
jobs:
  stackaid-json:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: actions/setup-go@v3
      - uses: stackaid/[email protected]

This will commit a stackaid.json file in your repository which will then automatically show up for funding in the StackAid dashboard.

The action also supports a few useful inputs and outputs so you can publish to a different repository or skip publishing all together and consume the generated stackaid.json in another action.

Inputs

  • token: An access token which has repo permissions. By default the action uses ${{ github.token }} automatically provided by the action runner.
  • publish_repo: The full name of the repository, (eg: username/repo-name) to publish the generated stackaid.json file. Defaults to the current repository.
  • publish_path: The path to publish to. By default the stackaid.json file is published to the root of the repository.
  • skip_publish: Set to true if you do not want to publish the generated file.

Note: If you publish to a separate repo you will need to provide a personal access token with the appropriate repo permissions.

Outputs

  • stackaid_json: The generated stackaid.json file as a string.
You might also like...

Generate static open graph images for Next.js at build time

next-static-og-images Generate static Open Graph images for Next.js at build time Getting started Installation npm i -D next-static-og-images or yarn

Jan 26, 2022

Full stack app to journal and keep track of your overall mood each day of the year, inspired by GitHub's contribution graph.

Full stack app to journal and keep track of your overall mood each day of the year, inspired by GitHub's contribution graph.

Mood Tracker Mood tracker to journal and keep track of your overall mood each day of the year. How It's Made: Tech used: EJS, CSS, JavaScript, Node.js

Dec 14, 2022

A quickstart AWS Lambda function code generator. Downloads a template function code file, test harness file, sample SAM deffiniation and appropriate file structure.

Welcome to function-stencil 👋 A quickstart AWS Lambda function code generator. Downloads a template function code file, test harness file, sample SAM

Jun 20, 2022

Serve file server with single zip file as file system in Deno.

zipland Serve file server with one-single zip file in Deno. Support zip just zip32 with deflated or uncompressed serving plaintext deflate Examples Yo

Nov 2, 2022

CancerDB: A public domain knowledge graph about cancer treatments that compiles to a CSV file.

CancerDB: A public domain csv file to help build the next great cure CancerDB is a public domain database and website containing facts about all types

Dec 15, 2022

Github action to collect metrics (CPU, memory, I/O, etc ...) from your workflows to help you debug and optimize your CI/CD pipeline

Github action to collect metrics (CPU, memory, I/O, etc ...) from your workflows to help you debug and optimize your CI/CD pipeline

workflow-telemetry-action A GitHub Action to track and monitor the resource metrics of your GitHub Action workflow runs. If the run is triggered via a

Dec 30, 2022

Jsonup - This is a zero dependency compile-time JSON parser written in TypeScript

jsonup This is a zero dependency compile-time JSON parser written in TypeScript.

Dec 8, 2022

A lightweight Adobe Photoshop .psd/.psb file parser in typescript with zero-dependency for WebBrowser and NodeJS

@webtoon/psd A lightweight Adobe Photoshop .psd/.psb file parser in typescript with zero-dependency for WebBrowser and NodeJS Browser Support Chrome F

Jan 1, 2023

Render (GitHub Flavoured with syntax highlighting) Markdown, and generate CSS for each of GitHub’s themes.

render-gfm Render (GitHub Flavoured with syntax highlighting) Markdown, and generate CSS for each of GitHub’s themes. GitHub Repository npm Package Do

Oct 10, 2022
Comments
  • Support both ESM and CJS. Refactor for NPM package

    Support both ESM and CJS. Refactor for NPM package

    The high level goal of this PR was to refactor the source to produce a usable package for NPM that other clients can use to generate accurate direct/indirect dependencies for GitHub projects. This resulted in the following:

    • Support for both CJS and ESM
    • A new API with (overridable) dependency generator functions for each ecosystem
    • Non-breaking change to use of the action
    opened by wescarr 0
  • Fix discovery of Go direct dependencies

    Fix discovery of Go direct dependencies

    • Instead of relying on main.go existing in root directory we use go list to list the direct dependencies and then continue with the existing approach to get indirect dependencies
    opened by wescarr 0
  • Better support for go projects. Fix file matching in source repo

    Better support for go projects. Fix file matching in source repo

    • GitHub's API returns a flat list of direct and indirect deps when examining go.mod files so instead we roll our own support making use of the go-setup actions
    • Fix issue where dependency could list itself as an indirect dependency
    • Support glob matching
    opened by wescarr 0
  • Support Deno projects

    Support Deno projects

    Interogate a Deno project and output a list of projects to support.

    This could work by:

    1. accepting a list of project entry points (ie main.ts or mod.ts)
    2. Running deno info [url] (see deno cli docs)
    3. Mapping the deps output to a set of projects and outputting those in the stackaid json
    enhancement 
    opened by MarkBennett 2
Releases(v1.9)
Owner
StackAid
Fund your open source repositories
StackAid
Package fetcher is a bot messenger which gather npm packages by uploading either a json file (package.json) or a picture representing package.json. To continue...

package-fetcher Ce projet contient un boilerplate pour un bot messenger et l'executable Windows ngrok qui va permettre de créer un tunnel https pour c

AILI Fida Aliotti Christino 2 Mar 29, 2022
JSON Visio is data visualization tool for your json data which seamlessly illustrates your data on graphs without having to restructure anything, paste directly or import file.

JSON Visio is data visualization tool for your json data which seamlessly illustrates your data on graphs without having to restructure anything, paste directly or import file.

Aykut Saraç 20.6k Jan 4, 2023
đŸ€–â€An action that fetches the list of malicious domains on Discord in different providers and creates/updates a JSON file with them from time to time.

Discord Guardian Action ??  This action fetches the list of malicious domains on Discord in different providers and creates/updates a JSON file with t

Dalton Menezes 7 Nov 30, 2022
Types generator will help user to create TS types from JSON. Just paste your single object JSON the Types generator will auto-generate the interfaces for you. You can give a name for the root object

Types generator Types generator is a utility tool that will help User to create TS Interfaces from JSON. All you have to do is paste your single objec

Vineeth.TR 16 Dec 6, 2022
Feel free to create new file, don't hesitate to pull your code, the most important thing is that the file name here must match your nickname so that file does not conflict with other people.

Hacktoberfest Indonesia Apa Itu Hacktoberfest ? Hacktoberfest adalah acara tahunan yang bertujuan untuk mendorong berkontribusi kedalam ekosistem open

Juan Daniel 5 Dec 15, 2022
JCS (JSON Canonicalization Scheme), JSON digests, and JSON Merkle hashes

JSON Hash This package contains the following JSON utilties for Deno: digest.ts provides cryptographic hash digests of JSON trees. It guarantee that d

Hong Minhee (æŽȘ 民憙) 13 Sep 2, 2022
Prisma 2+ generator to emit a JSON file that can be run with json-server

Prisma JSON Server Generator A Prisma generator that automates creating a JSON file that can be run as a server from your Prisma schema. Explore the o

Omar Dulaimi 14 Jan 7, 2023
esbuild plugin to generate mix-manifest.json file compatible with Laravel Mix.

esbuild-mix-manifest-plugin An esbuild plugin to generate a mix-manifest.json compatible with Laravel Mix. Installation You can install the plugin via

Stefan Zweifel 6 Dec 25, 2022
GitHub Action that posts the report in a comment on a GitHub Pull Request from coverage data generated by nyc (istanbul)

GitHub Action: Report NYC coverage GitHub Action that posts the report in a comment on a GitHub Pull Request from coverage data generated by nyc (ista

Sid 16 Nov 23, 2022
A GitHub Action that allows to debug GitHub workflows using VS Code.

VS Code Server Action A GitHub Action that allows to debug GitHub workflows using VS Code. Failing CI builds can be annoying especially since we don't

stateful 18 Dec 23, 2022