-
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@a90bcbc6539c36a85cdfeb73f7e2f433735f215b # v2.15.0
with:
egress-policy: audit
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.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 }}"