Skip to content

Legitify Scan (PAT)

Legitify Scan (PAT) #9

name: Legitify Scan (PAT)
on: [workflow_dispatch]
permissions:
actions: read
contents: read
security-events: write
issues: writee

Check failure on line 9 in .github/workflows/legitify-repo-scan-pat.yml

View workflow run for this annotation

GitHub Actions / Legitify Scan (PAT)

Invalid workflow file

The workflow is not valid. .github/workflows/legitify-repo-scan-pat.yml (Line: 9, Col: 11): Unexpected value 'writee'
jobs:
scan-repository:
name: Scan Repository
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Scan Repo
uses: Legit-Labs/legitify@b814483c588aefad01b33e921008e73352639277
with:
github_token: ${{ secrets.GH_PAT }}
analyze_self_only: "true"
scorecard: yes
- name: Create Summary Issue
if: success()
env:
GH_TOKEN: ${{ github.token }}
run: |
date=`date +%m-%d-%Y`
gh issue create \
--title "Daily Scan Report - ${date}" \
--body "The summary is available at ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" \
--label "repository-report" \
--assignee @xpirit-training/admins
- name: Create Error Issue
if: failure()
env:
GH_TOKEN: ${{ github.token }}
run: |
date=`date +%m-%d-%Y`
gh issue create \
--title "Repository Scan Failed - ${date}" \
--body "The repository scan failed, see ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" \
--label "repository-report, failure" \
--assignee @xpirit-training/admins