Skip to content

Refactor GitHub Security Alerts retrieval and artifact creation #43

Refactor GitHub Security Alerts retrieval and artifact creation

Refactor GitHub Security Alerts retrieval and artifact creation #43

Workflow file for this run

name: Usage
on:
push:
pull_request:
workflow_dispatch:
jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./
id: export
with:
github-token: ${{ secrets.PAT }}
repository: octodemo/vulnerable-node
- name: Write JSON to file
run: |
echo "$DEPENDABOT" > dependabot.json
echo "$CODE_SCANNING" > code-scanning.json
echo "$SECRET_SCANNING" > secret-scanning.json
env:
DEPENDABOT: ${{ toJson(fromJson(steps.export.outputs.dependabot)) }}
CODE_SCANNING: ${{ toJson(fromJson(steps.export.outputs.code-scanning)) }}
SECRET_SCANNING: ${{ toJson(fromJson(steps.export.outputs.secret-scanning)) }}