GitHub action for creating annotations from JSON file
This repository uses npm packages from @attest
scope on github; we are working hard to open source these packages.
Make sure you have a ~/.npmrc
file setup with a github token (read packages scope) to authenticate with the Github package registry for fe-tools
//npm.pkg.github.com/:_authToken={githubtoken}
@attest:registry=https://npm.pkg.github.com/
Then install with
yarn
workflow.yml
name: workflow
on: [push]
jobs:
job:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
- name: Annotate
uses: Attest/annotations-action@v0.1.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
input: './annotations.json'
title: 'Annotate Files'
The expected structure for the input is defined here in the source, for an example please look at annotations.json
.