Skip to content

feat: initial version #34

feat: initial version

feat: initial version #34

Workflow file for this run

name: Test Twyn Action
on:
pull_request:
branches: [main]
push:
branches: [main]
workflow_dispatch:
jobs:
test-action:
runs-on: ubuntu-latest
name: Test GH action
steps:
- name: Checkout
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Test Twyn Action
uses: ./
with:
vv: true
# publish: "true"
# github-token: ${{ secrets.GITHUB_TOKEN }}
security-scan:
runs-on: ubuntu-latest
outputs:
# Expose outputs from this job to other jobs
scan-results: ${{ steps.twyn.outputs.results }}
has-findings: ${{ steps.twyn.outputs.has-findings }}
exit-code: ${{ steps.twyn.outputs.exit-code }}
steps:
- uses: actions/checkout@v4
- name: Run Twyn Security Scan
id: twyn
uses: ./
with:
json: true # Get JSON output for parsing
dependency-file: requirements.txt
- name: Show results in this job
run: |
echo "Exit code: ${{ steps.twyn.outputs.exit-code }}"
echo "Has findings: ${{ steps.twyn.outputs.has-findings }}"
echo "Results: ${{ steps.twyn.outputs.results }}"