-
Notifications
You must be signed in to change notification settings - Fork 5
33 lines (28 loc) · 1.03 KB
/
git-sizer-dispatch.yml
File metadata and controls
33 lines (28 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Analyze Repo with git-sizer
run-name: Analyze Repo with git-sizer - ${{ github.event.inputs.repo }}
on:
workflow_dispatch:
inputs:
repo:
description: 'Repository to analyze (e.g., https://github.com/owner/repo.git)'
required: true
jobs:
run-git-sizer:
name: git-sizer - ${{ github.event.inputs.repo }}
runs-on: ubuntu-latest
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@6c439dc8bdf85cadbbce9ed30d1c7b959517bc49 # v2.12.2
with:
egress-policy: audit
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Use local git-sizer action
id: sizer
uses: ChrisCarini/github-git-sizer-action@09eaa4ae73038a5f0bbdc7e7b964f1bf6114c277 # latest
with:
repo: ${{ github.event.inputs.repo }}
flags: '--threshold=0'
- name: Print git-sizer output
run: |
printf "%s\n" "${{ steps.sizer.outputs.result }}"