github-security-report 0.25.0__tar.gz → 0.27.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {github_security_report-0.25.0 → github_security_report-0.27.0}/PKG-INFO +437 -67
- {github_security_report-0.25.0 → github_security_report-0.27.0}/README.md +432 -62
- {github_security_report-0.25.0 → github_security_report-0.27.0}/pyproject.toml +7 -7
- {github_security_report-0.25.0 → github_security_report-0.27.0}/scripts/README.md +4 -2
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/_version.py +2 -2
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/categories/keys.py +1 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/categories/signals.py +20 -1
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/classify.py +149 -55
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/cli/app.py +1 -1
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/cli/boundary.py +24 -5
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/cli/modes.py +45 -3
- github_security_report-0.27.0/src/github_security_report/cli/preflight.py +418 -0
- github_security_report-0.27.0/src/github_security_report/cli/preflight_messages.py +182 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/cli/remediation.py +28 -2
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/cli/serialise.py +4 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/client/__init__.py +2 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/client/alerts.py +12 -5
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/client/analyses.py +76 -19
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/client/batch_errors.py +2 -2
- github_security_report-0.27.0/src/github_security_report/client/bodies.py +67 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/client/errors.py +47 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/client/failures.py +78 -2
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/client/org_reads.py +30 -7
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/client/paging.py +36 -17
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/client/parsers.py +4 -2
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/client/reads.py +29 -26
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/client/repo_parser.py +14 -0
- github_security_report-0.27.0/src/github_security_report/client/retry.py +57 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/client/transport.py +53 -51
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/client/workflow_runs.py +3 -3
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/collect/context.py +3 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/collect/org.py +11 -4
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/collect/protocols.py +5 -4
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/collect/repo.py +8 -5
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/config/blocks.py +2 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/config/key_notes.py +3 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/config/models.py +6 -1
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/config/order.py +4 -2
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/config/schema.py +8 -1
- github_security_report-0.27.0/src/github_security_report/fuzz.py +36 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/gating.py +2 -1
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/models.py +11 -2
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/ordering.py +1 -1
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/render/slack.py +2 -1
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/report/aggregate.py +6 -1
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/report/signals.py +36 -4
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/summary.py +25 -1
- {github_security_report-0.25.0 → github_security_report-0.27.0}/.gitignore +0 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/LICENSE +0 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/LICENSES/Apache-2.0.txt +0 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/__init__.py +0 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/authors.py +0 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/categories/__init__.py +0 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/categories/tables.py +0 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/cli/__init__.py +0 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/cli/__main__.py +0 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/cli/config_cmd.py +0 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/cli/config_source.py +0 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/cli/options.py +0 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/cli/outputs.py +0 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/cli/progress.py +0 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/cli/publish.py +0 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/cli/summary.py +0 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/client/accounting.py +0 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/client/codeql_parsers.py +0 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/client/copilot.py +0 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/client/endpoints.py +0 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/client/events.py +0 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/client/queries.py +0 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/client/reviews.py +0 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/client/writes.py +0 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/code_quality.py +0 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/codeql/__init__.py +0 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/codeql/cleanup.py +0 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/codeql/facts.py +0 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/codeql/tables.py +0 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/collect/__init__.py +0 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/collect/codeql.py +0 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/collect/exclusions.py +0 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/collect/extras.py +0 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/collect/graph.py +0 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/collect/run_sync.py +0 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/collect/scoping.py +0 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/collect/workflow_runs.py +0 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/config/__init__.py +0 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/config/dictionary.py +0 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/config/errors.py +0 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/config/loader.py +0 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/config/workflow_runs.py +0 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/gitctx.py +0 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/issue_presentation.py +0 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/issues.py +0 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/layout.py +0 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/malware.py +0 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/matching.py +0 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/posture/__init__.py +0 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/posture/enablement.py +0 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/posture/facts.py +0 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/posture/quality.py +0 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/posture/releases.py +0 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/pulls/__init__.py +0 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/pulls/columns.py +0 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/pulls/counting.py +0 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/pulls/presentation.py +0 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/pulls/table.py +0 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/py.typed +0 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/ranking.py +0 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/remediate/__init__.py +0 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/remediate/codeql.py +0 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/remediate/model.py +0 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/render/__init__.py +0 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/render/html.py +0 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/render/markdown.py +0 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/render/slack_limits.py +0 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/render/slack_text.py +0 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/render/terminal.py +0 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/render/terminal_notices.py +0 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/report/__init__.py +0 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/report/display.py +0 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/report/exclusions.py +0 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/report/tables.py +0 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/rulesets.py +0 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/runner.py +0 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/scope.py +0 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/secret_patterns.py +0 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/severity.py +0 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/templates/index.html.j2 +0 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/templates/report.html.j2 +0 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/workflow_runs/__init__.py +0 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/workflow_runs/aggregate.py +0 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/workflow_runs/models.py +0 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/workflow_runs/store.py +0 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/workflow_runs/store_codec.py +0 -0
- {github_security_report-0.25.0 → github_security_report-0.27.0}/src/github_security_report/workflow_runs/tables.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: github-security-report
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.27.0
|
|
4
4
|
Summary: Security and quality reporting across GitHub organisations
|
|
5
5
|
Project-URL: Homepage, https://github.com/lfreleng-actions/github-security-report-action
|
|
6
6
|
Project-URL: Repository, https://github.com/lfreleng-actions/github-security-report-action
|
|
@@ -29,15 +29,15 @@ Requires-Dist: jinja2==3.1.6
|
|
|
29
29
|
Requires-Dist: jsonschema==4.26.0
|
|
30
30
|
Requires-Dist: pyyaml==6.0.3
|
|
31
31
|
Requires-Dist: rich==15.0.0
|
|
32
|
-
Requires-Dist: typer==0.
|
|
32
|
+
Requires-Dist: typer==0.29.1
|
|
33
33
|
Provides-Extra: dev
|
|
34
34
|
Requires-Dist: mypy==2.4.1; extra == 'dev'
|
|
35
|
-
Requires-Dist: pytest-asyncio==1.
|
|
35
|
+
Requires-Dist: pytest-asyncio==1.5.0; extra == 'dev'
|
|
36
36
|
Requires-Dist: pytest-cov==7.1.0; extra == 'dev'
|
|
37
37
|
Requires-Dist: pytest==9.2.0; extra == 'dev'
|
|
38
38
|
Requires-Dist: respx==0.23.1; extra == 'dev'
|
|
39
|
-
Requires-Dist: ruff==0.17.
|
|
40
|
-
Requires-Dist: syrupy==
|
|
39
|
+
Requires-Dist: ruff==0.17.5; extra == 'dev'
|
|
40
|
+
Requires-Dist: syrupy==7.0.2; extra == 'dev'
|
|
41
41
|
Requires-Dist: types-jsonschema==4.26.0.20261006; extra == 'dev'
|
|
42
42
|
Requires-Dist: types-pyyaml==6.0.12.20250915; extra == 'dev'
|
|
43
43
|
Description-Content-Type: text/markdown
|
|
@@ -56,8 +56,8 @@ Description-Content-Type: text/markdown
|
|
|
56
56
|
|
|
57
57
|
> Security and quality **reporting** (not scanning) across GitHub
|
|
58
58
|
> organisations. Aggregates existing signals — CodeQL, OpenSSF Scorecard,
|
|
59
|
-
> zizmor, aislop (AI slop), Dependabot, and secret scanning — and
|
|
60
|
-
> worst offenders so remediation effort goes where it is needed.
|
|
59
|
+
> zizmor, aislop (AI slop), fuzzing, Dependabot, and secret scanning — and
|
|
60
|
+
> ranks the worst offenders so remediation effort goes where it is needed.
|
|
61
61
|
|
|
62
62
|
## 🗒️ Published reports
|
|
63
63
|
|
|
@@ -72,7 +72,15 @@ states and rendered worst-first:
|
|
|
72
72
|
- **Clean** — enabled with zero findings (a count beneath the table).
|
|
73
73
|
- **Not enabled** — supported but switched off (a counted "disabled" footer
|
|
74
74
|
line, with the affected repositories named).
|
|
75
|
-
- **Unknown** — indeterminate
|
|
75
|
+
- **Unknown** — indeterminate, counted separately. The terminal, Markdown
|
|
76
|
+
and HTML reports name the reasons beside the count, for example
|
|
77
|
+
`3 Unknown (2 insufficient permission, 1 alert data incomplete)`:
|
|
78
|
+
- `insufficient permission` — the token cannot read the signal (`403`).
|
|
79
|
+
- `indeterminate` — a read that settles enablement failed.
|
|
80
|
+
- `alert data unavailable` — the alert read failed with nothing collected.
|
|
81
|
+
- `alert data incomplete` — the alert read failed part-way.
|
|
82
|
+
- `languages unreadable` — fuzzing could not read the languages.
|
|
83
|
+
- `no reason recorded` — the classifier gave none.
|
|
76
84
|
|
|
77
85
|
Every category renders the same **standardised summary footer** beneath its
|
|
78
86
|
table: remediation-first count lines (failures, disabled, unknown, then the
|
|
@@ -85,14 +93,18 @@ stay brevity-first; the explanatory per-category description and documentation
|
|
|
85
93
|
link are shown only on the richer Markdown and HTML (GitHub Pages) outputs.
|
|
86
94
|
|
|
87
95
|
The single GitHub code-scanning feed is partitioned by `tool.name` into CodeQL,
|
|
88
|
-
Scorecard, zizmor, and
|
|
89
|
-
and falls back to code-scanning findings.
|
|
96
|
+
Scorecard, zizmor, aislop, and fuzz; Scorecard prefers the external aggregate
|
|
97
|
+
score and falls back to code-scanning findings. **Fuzzing** reports the
|
|
98
|
+
failures the organisation's daily fuzz job uploads, and counts a repository
|
|
99
|
+
holding none of the `report.fuzz_languages` Linguist languages (default
|
|
100
|
+
`["Python", "Go"]`) as **Not applicable** rather than not enabled; see
|
|
101
|
+
[ADR-0009](docs/adr/0009-fuzzing.md). See [`docs/BRIEF.md`](docs/BRIEF.md)
|
|
90
102
|
and [`docs/phase0-findings.md`](docs/phase0-findings.md) for the full design and
|
|
91
103
|
the API research it is built on.
|
|
92
104
|
|
|
93
|
-
The workflow-driven signals (OpenSSF Scorecard, zizmor, aislop) only
|
|
94
|
-
data when an organisation has deployed supporting workflows. The tool
|
|
95
|
-
for that support cheaply before collecting (**feature gating**): an
|
|
105
|
+
The workflow-driven signals (OpenSSF Scorecard, zizmor, aislop, fuzz) only
|
|
106
|
+
produce data when an organisation has deployed supporting workflows. The tool
|
|
107
|
+
checks for that support cheaply before collecting (**feature gating**): an
|
|
96
108
|
organisation with no evidence of a tool — no ruleset requiring its workflow,
|
|
97
109
|
no alerts, no analyses on a sample of repositories — gets a single
|
|
98
110
|
`⏩ Skipping feature: organisation support missing` line for that section
|
|
@@ -255,7 +267,7 @@ known list is shorter — see
|
|
|
255
267
|
|
|
256
268
|
| Mode | Token | Scope | Output |
|
|
257
269
|
| ---- | ----- | ----- | ------ |
|
|
258
|
-
| `org` | fine-grained PAT
|
|
270
|
+
| `org` | fine-grained PAT per org, or one classic PAT for several | one or more organisations | GitHub Pages + Slack + terminal |
|
|
259
271
|
| `repo` | `GITHUB_TOKEN` | the current repository only | job summary + outputs + optional PR gate |
|
|
260
272
|
|
|
261
273
|
`scope: auto` resolves to org mode when configuration is supplied, otherwise
|
|
@@ -265,15 +277,33 @@ org-wide security data, so org mode requires a PAT — see
|
|
|
265
277
|
|
|
266
278
|
## Token permissions
|
|
267
279
|
|
|
268
|
-
Repo mode
|
|
269
|
-
|
|
270
|
-
|
|
280
|
+
Repo mode runs on the workflow's ephemeral `GITHUB_TOKEN`, with the job
|
|
281
|
+
permissions in [Repo mode: the job token](#repo-mode-the-job-token). Org mode
|
|
282
|
+
needs a Personal Access Token: a fine-grained PAT per organisation, or one
|
|
283
|
+
classic PAT for every organisation the report covers (see the two options
|
|
284
|
+
below). The `remediate` subcommand needs write access on top of most of the
|
|
285
|
+
report's reads, and one token for its whole run; see
|
|
286
|
+
[The `remediate` subcommand](#the-remediate-subcommand).
|
|
271
287
|
|
|
272
288
|
Almost all required access is **read-only**. The tool degrades any read it is
|
|
273
289
|
not permitted to make to an "unknown" status rather than reporting a repository
|
|
274
290
|
as clean, so an under-scoped token surfaces as unknowns in the report instead of
|
|
275
291
|
silently wrong results — start minimal and widen if you see unknowns.
|
|
276
292
|
|
|
293
|
+
Before collecting anything, org-mode `report` checks every organisation's own
|
|
294
|
+
`token_env` token: each must be set, each distinct token's rate limit must not
|
|
295
|
+
be spent, and each organisation's repository listing must be readable, or the
|
|
296
|
+
run stops with the codes in [Exit codes](#exit-codes). `remediate` ignores the
|
|
297
|
+
per-organisation `token_env` values and checks only its one `--token-env`
|
|
298
|
+
token (default `GITHUB_TOKEN`): its rate limit, and its read of every
|
|
299
|
+
organisation's listing. For a classic PAT the same check warns about a missing
|
|
300
|
+
scope from the table below and about a token that expires within seven days.
|
|
301
|
+
The rate-limit, scope and expiry checks are best effort: when `GET /rate_limit`
|
|
302
|
+
times out, fails to connect, answers anything but `200`, `401` or a refusal
|
|
303
|
+
for a spent rate limit, or sends a body the tool cannot read, they are skipped for that token (logged at DEBUG)
|
|
304
|
+
and the run goes on to the listing checks. A passing pre-flight therefore does
|
|
305
|
+
not prove that every token's budget was checked.
|
|
306
|
+
|
|
277
307
|
The **one** exception is organisation-ruleset coverage. GitHub gates the
|
|
278
308
|
org-rulesets endpoint behind an org-admin permission (classic `admin:org` scope,
|
|
279
309
|
or fine-grained Administration **write**), even though the tool only reads it.
|
|
@@ -303,6 +333,152 @@ repository is covered *solely* by a required-workflow ruleset whose workflow has
|
|
|
303
333
|
never run. A genuinely unexpected failure to read the rulesets (for example a
|
|
304
334
|
`5xx`) is still logged as a warning.
|
|
305
335
|
|
|
336
|
+
Org mode also depends on the account behind the token. It reads each
|
|
337
|
+
organisation's code-scanning, Dependabot and secret-scanning alerts through
|
|
338
|
+
GitHub's organisation-wide alert endpoints, which GitHub serves only to an
|
|
339
|
+
organisation owner or security manager (for secret scanning, an owner,
|
|
340
|
+
administrator or security manager), whatever scopes or permissions the token
|
|
341
|
+
carries. This holds for both PAT types, and is separate from the optional
|
|
342
|
+
`admin:org` scope. A token from any other account has those reads refused.
|
|
343
|
+
Most affected signals then read as unknown, but not all: a repository with
|
|
344
|
+
an external Scorecard score is classified from that score alone, so a perfect
|
|
345
|
+
score reads clean even though no code-scanning alert was read. Check the
|
|
346
|
+
account's role rather than relying on unknown counts to expose it.
|
|
347
|
+
|
|
348
|
+
### Repo mode: the job token
|
|
349
|
+
|
|
350
|
+
Repo mode reads one repository. Its only organisation-level request is the
|
|
351
|
+
best-effort check of the secret-scanning pattern names against GitHub's
|
|
352
|
+
inventory (see
|
|
353
|
+
[Secret scanning covers three pattern categories](#secret-scanning-covers-three-pattern-categories)),
|
|
354
|
+
made before the secret-scanning reads. The job token cannot make it, nor can a
|
|
355
|
+
token without the organisation access that section names, or any token when
|
|
356
|
+
the repository belongs to a user account. The check is then skipped without
|
|
357
|
+
comment and the generic pattern names are used unverified, so a pattern GitHub
|
|
358
|
+
renames would go unnoticed. The job's `GITHUB_TOKEN` covers the other reads
|
|
359
|
+
once the job grants the map below, with two exceptions described after it: it
|
|
360
|
+
cannot read secret-scanning alerts, and whether it can make the Dependabot
|
|
361
|
+
enablement read is untested:
|
|
362
|
+
|
|
363
|
+
```yaml
|
|
364
|
+
permissions:
|
|
365
|
+
actions: read # workflow run history (Workflow Failures tables)
|
|
366
|
+
security-events: read # code-scanning analyses and alerts
|
|
367
|
+
vulnerability-alerts: read # Dependabot alerts
|
|
368
|
+
```
|
|
369
|
+
|
|
370
|
+
A `permissions` map sets every permission it leaves out to `none`. The action
|
|
371
|
+
itself needs no more than the map above: the repository and its effective
|
|
372
|
+
branch rules need only the metadata access every job token carries. A job that
|
|
373
|
+
also runs `actions/checkout` with this token on a private repository must add
|
|
374
|
+
`contents: read`.
|
|
375
|
+
|
|
376
|
+
Repo mode finds its repository from the action's `repo` input or, when that is
|
|
377
|
+
empty, from the `upstream` then `origin` git remote of the job's workspace; it
|
|
378
|
+
does not read `GITHUB_REPOSITORY`. A job without a checkout has no remote, so
|
|
379
|
+
it stops before reading anything unless it sets
|
|
380
|
+
`repo: "${{ github.repository }}"`. With `repo` set, the job needs no checkout
|
|
381
|
+
and no `contents` permission.
|
|
382
|
+
|
|
383
|
+
`vulnerability-alerts: read` is the permission GitHub requires before the job
|
|
384
|
+
token can read Dependabot alerts. It does not by itself make the Dependabot
|
|
385
|
+
signal readable: repo mode reads the alerts only after a GraphQL read
|
|
386
|
+
(`hasVulnerabilityAlertsEnabled`) reports Dependabot alerts on, and whether
|
|
387
|
+
the job token can make that read has not been tested. Where it cannot, the
|
|
388
|
+
Dependabot signal reads as unknown when the response carries no repository,
|
|
389
|
+
but as **disabled** when it carries the repository without that field's value
|
|
390
|
+
(see the Dependabot bullet below); neither fails the gate.
|
|
391
|
+
|
|
392
|
+
No job permission covers secret-scanning alerts: GitHub serves them only to a
|
|
393
|
+
GitHub App or a personal access token, and `security-events` covers code
|
|
394
|
+
scanning. With the job token, secret scanning therefore never gates a pull
|
|
395
|
+
request; it reads as unknown or disabled. To gate on leaked secrets, pass a
|
|
396
|
+
token that can read them through the action's `token` input, and grant it
|
|
397
|
+
the repository permissions for every signal repo mode reads (see the
|
|
398
|
+
[fine-grained table](#single-organisation--fine-grained-pat)). GitHub also
|
|
399
|
+
requires the account behind a personal access token to be an administrator
|
|
400
|
+
of the repository or of its organisation; otherwise the read is refused
|
|
401
|
+
whatever the token's permissions.
|
|
402
|
+
|
|
403
|
+
Leaked secrets count as **high** findings, so they fail the gate at
|
|
404
|
+
`fail_threshold` `any`, `low`, `medium` or `high`, but not at `critical` or
|
|
405
|
+
the default `none`.
|
|
406
|
+
|
|
407
|
+
On a `pull_request` run from a fork, GitHub withholds repository secrets by
|
|
408
|
+
default, so a token passed from `secrets` is empty and the action falls back
|
|
409
|
+
to the job token: secret scanning then does not gate that run, and the job
|
|
410
|
+
can pass. A workflow that must not pass without the token should fail in an
|
|
411
|
+
earlier step when the secret is empty. Do not switch to `pull_request_target`
|
|
412
|
+
to obtain the secret: a job that then checks out the pull request's code
|
|
413
|
+
exposes the token to it. For the same reason, do not enable a private or
|
|
414
|
+
internal repository's **Send secrets to workflows from pull requests**
|
|
415
|
+
setting where untrusted contributors can open fork pull requests: with it on,
|
|
416
|
+
the token is passed to workflow code the fork controls instead of falling
|
|
417
|
+
back to the job token.
|
|
418
|
+
|
|
419
|
+
Repo mode reads the repository's code-scanning, secret-scanning and Dependabot
|
|
420
|
+
alerts. A read the token cannot make does not always surface as unknown. A
|
|
421
|
+
`200` whose body is not valid JSON, or whose top-level JSON type is not the
|
|
422
|
+
one the read expects (an array or an object), counts as a failed read. The
|
|
423
|
+
client checks no deeper: a well-formed body with missing fields is read as
|
|
424
|
+
it stands, so an analyses page of `[{}]` names no tool, and the tools then
|
|
425
|
+
read as not enabled rather than unknown.
|
|
426
|
+
|
|
427
|
+
- CodeQL, zizmor and aislop: when the analyses read fails with anything but
|
|
428
|
+
`404`, or the filtered probe for a tool missing from the newest 100
|
|
429
|
+
analyses answers with invalid JSON or a non-array body, each is unknown,
|
|
430
|
+
except one a ruleset enforces, whose alert read is then skipped so that it
|
|
431
|
+
reads as clean. A `404` reads as code scanning **disabled**, and a tool missing from
|
|
432
|
+
the analyses reads **not enabled**, unless its filtered probe fails with an
|
|
433
|
+
HTTP error, which leaves it **unknown** as well.
|
|
434
|
+
Neither applies to a tool a ruleset enforces: it counts as enabled, and
|
|
435
|
+
after a `404` its alert read is skipped, so it reads as clean rather than
|
|
436
|
+
disabled. For a tool detected in the analyses or enforced by a ruleset,
|
|
437
|
+
an alert at or above the category's cutoff makes the repository an
|
|
438
|
+
offender even when the alert read did not finish; otherwise an unfinished
|
|
439
|
+
alert read is **unknown**, never clean. A tool left undetected reads **not
|
|
440
|
+
enabled**, or **unknown** when its probe failed, whatever alerts were
|
|
441
|
+
collected, so its alerts do not fail the gate.
|
|
442
|
+
- Scorecard prefers its external score from scorecard.dev, read without the
|
|
443
|
+
token, so it can be classified, clean included, while the analyses are
|
|
444
|
+
unreadable. Without that score it falls back to its code-scanning alerts
|
|
445
|
+
only when Scorecard is detected in the analyses, under the same rule for an
|
|
446
|
+
unfinished alert read; a ruleset does not stand in for detection here, and
|
|
447
|
+
an undetected Scorecard's alerts do not fail the gate.
|
|
448
|
+
- Secret scanning makes two reads (see
|
|
449
|
+
[Secret scanning covers three pattern categories](#secret-scanning-covers-three-pattern-categories)).
|
|
450
|
+
An alert from either makes the repository an offender. Otherwise it reads
|
|
451
|
+
as **disabled** only when neither read succeeded and the unfiltered one
|
|
452
|
+
returned `404`, the answer GitHub gives when secret scanning is off. It is
|
|
453
|
+
unknown when neither succeeded for another reason, a `403` included, and
|
|
454
|
+
when one read succeeded but the other failed.
|
|
455
|
+
- Dependabot alerts are unknown when the enablement read returns no
|
|
456
|
+
repository: a failed request, a malformed body, or an error on the
|
|
457
|
+
repository itself. A response that returns the repository with
|
|
458
|
+
`hasVulnerabilityAlertsEnabled` null or missing, as a partial response with
|
|
459
|
+
an error on that field can, reads as Dependabot alerts **disabled**: the
|
|
460
|
+
alerts are not read, so the signal adds no unknown count and cannot fail the
|
|
461
|
+
gate. An alert at or above the category's cutoff (`medium` by default)
|
|
462
|
+
makes the repository an offender even when the alert read did not finish;
|
|
463
|
+
otherwise an unfinished alert read is **unknown**, never clean.
|
|
464
|
+
|
|
465
|
+
Repo mode classifies every category against its default cutoff (see
|
|
466
|
+
[Pass/fail severity cutoff](#passfail-severity-cutoff)) and ignores
|
|
467
|
+
`report.categories.<key>.fail_severity`. CodeQL, Scorecard findings and
|
|
468
|
+
Dependabot use `medium`, aislop `low` and zizmor `informational`, so a
|
|
469
|
+
repository whose only CodeQL alerts are `low` reads clean and passes even at
|
|
470
|
+
`fail_threshold` `any` or `low`.
|
|
471
|
+
|
|
472
|
+
Classification and the gate are separate, and the gate acts only on offenders.
|
|
473
|
+
`fail_threshold: any` fails the job on every offender, a sub-10 Scorecard
|
|
474
|
+
score with no findings included. A severity threshold fails it only on an
|
|
475
|
+
offender with a finding at or above that severity. An unknown or disabled
|
|
476
|
+
signal never fails the gate, so a token missing a permission can pass it:
|
|
477
|
+
check each category's footer for its `❓` unknown count.
|
|
478
|
+
|
|
479
|
+
Repo mode reads no issues, pull requests or organisation membership, so it
|
|
480
|
+
needs no permission for them.
|
|
481
|
+
|
|
306
482
|
### Single organisation — fine-grained PAT
|
|
307
483
|
|
|
308
484
|
A fine-grained PAT is bound to one resource owner, so it works for a report
|
|
@@ -316,9 +492,10 @@ organisation and **Repository access** set to *All repositories*, then grant:
|
|
|
316
492
|
| Metadata | Mandatory baseline; listing organisation repositories |
|
|
317
493
|
| Contents | `.github/dependabot.yml`, latest release, and tag dates |
|
|
318
494
|
| Dependabot alerts | Open Dependabot vulnerability alerts |
|
|
319
|
-
| Code scanning alerts | CodeQL / Scorecard / zizmor / aislop findings |
|
|
495
|
+
| Code scanning alerts | CodeQL / Scorecard / zizmor / aislop / fuzz findings |
|
|
320
496
|
| Secret scanning alerts | Open secret-scanning alerts, across every GitHub pattern category |
|
|
321
497
|
| Issues | Open issues and their labels (GitHub Issues table) |
|
|
498
|
+
| Pull requests | Open pull requests, their reviews and review requests (Pull Requests tables) |
|
|
322
499
|
| Administration | Dependabot enablement + security-updates status, and effective branch rules. *Optional* **write** reads the Code Quality setup, which GitHub gates behind write |
|
|
323
500
|
| Actions | Workflow state behind a stale CodeQL configuration, and the workflow run history behind the Workflow Failures tables (the run listing, single-run re-reads, and the GraphQL read of a failed run's check suite) |
|
|
324
501
|
|
|
@@ -326,11 +503,23 @@ organisation and **Repository access** set to *All repositories*, then grant:
|
|
|
326
503
|
|
|
327
504
|
| Permission | Access | Used for |
|
|
328
505
|
| ---------- | ------ | -------- |
|
|
329
|
-
|
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
>
|
|
333
|
-
>
|
|
506
|
+
| Members | Read | Organisation membership behind the `Ext` columns of the GitHub Issues and Pull Requests tables. Without it `Ext` is a lower bound and the terminal report prints a warning (see [Inside or outside the organisation](#inside-or-outside-the-organisation)) |
|
|
507
|
+
| Administration | Read (write for rulesets) | *Optional*. **Read** keeps the token read-only and unlocks GitHub's secret-scanning pattern inventory (see below). **Write** additionally unlocks organisation rulesets (detecting tools enforced through an org ruleset), which GitHub gates behind Administration write. Omit the permission entirely to skip both; everything else is unaffected. |
|
|
508
|
+
|
|
509
|
+
> Every permission in both tables is read-only, except the two optional
|
|
510
|
+
> Administration **write** grants: organisation rulesets and the Code Quality
|
|
511
|
+
> setup read. A fine-grained token cannot span organisations, but a report
|
|
512
|
+
> resolves each organisation's own `token_env`, so a multi-organisation report
|
|
513
|
+
> can give each organisation its own fine-grained PAT. Set each organisation's
|
|
514
|
+
> `token_env` to a distinct custom variable, not `GITHUB_TOKEN`, and export
|
|
515
|
+
> each PAT under it (in the action, through the step's `env`). Leave the
|
|
516
|
+
> `token_env` input and `--token-env` unset, since either overrides every
|
|
517
|
+
> organisation's. Org mode in the action still requires a non-empty `token`
|
|
518
|
+
> input, so pass one of those PATs there too. With the `token_env` input unset,
|
|
519
|
+
> the action exports `token` as `GITHUB_TOKEN`, replacing any `GITHUB_TOKEN`
|
|
520
|
+
> the step sets; an organisation without its own `token_env` reads that one.
|
|
521
|
+
> Otherwise use one classic PAT (below). `remediate` runs on a single token
|
|
522
|
+
> (see [The `remediate` subcommand](#the-remediate-subcommand)).
|
|
334
523
|
|
|
335
524
|
### Multiple organisations — classic PAT
|
|
336
525
|
|
|
@@ -340,14 +529,15 @@ organisations. Grant these scopes:
|
|
|
340
529
|
|
|
341
530
|
| Scope | Used for |
|
|
342
531
|
| ----- | -------- |
|
|
343
|
-
| `repo` | Repository data, including private repositories
|
|
532
|
+
| `repo` | Repository data, including private repositories; open issues and pull requests (GitHub Issues and Pull Requests tables); and the workflow run history behind the Workflow Failures tables |
|
|
344
533
|
| `security_events` | Code scanning, secret scanning, and Dependabot alerts (org-bulk and per-repo) |
|
|
345
|
-
| `read:org` | Listing organisation repositories, and GitHub's secret-scanning pattern inventory (see below) |
|
|
534
|
+
| `read:org` | Listing organisation repositories, organisation membership behind the `Ext` columns, and GitHub's secret-scanning pattern inventory (see below) |
|
|
346
535
|
| `admin:org` | *Optional* — reading organisation rulesets for ruleset-based tool coverage. GitHub gates `GET /orgs/{org}/rulesets` behind the full `admin:org` scope; `read:org` and `write:org` return 404. Omit it to skip that one signal; everything else is unaffected. |
|
|
347
536
|
|
|
348
537
|
> For organisations that enforce SSO, the PAT must be **SSO-authorised** for
|
|
349
|
-
> each target organisation, or the org-level endpoints return `403
|
|
350
|
-
>
|
|
538
|
+
> each target organisation, or the org-level endpoints return `403`: the
|
|
539
|
+
> repository listing then stops the run with exit code `5`, rather than being
|
|
540
|
+
> reported as unknown. Store the token as a secret (e.g. `LFRELENG_ACTIONS_REPORT_PAT`) and
|
|
351
541
|
> reference it by env-var name via `token_env`; never embed it in the config.
|
|
352
542
|
|
|
353
543
|
### Secret scanning covers three pattern categories
|
|
@@ -377,6 +567,108 @@ cannot read it, the check is skipped without comment and the sweep proceeds
|
|
|
377
567
|
unchanged. The AI-detected patterns are absent from that inventory and so go
|
|
378
568
|
unverified.
|
|
379
569
|
|
|
570
|
+
### The `remediate` subcommand
|
|
571
|
+
|
|
572
|
+
[`remediate`](#remediation) runs the report's own collection before it writes,
|
|
573
|
+
so its token needs the report's reads, plus write access. It skips building
|
|
574
|
+
the GitHub Issues, Pull Requests and Assigned to Me tables and the Workflow
|
|
575
|
+
Failures tables, because no remediation acts on them, and with them the
|
|
576
|
+
membership and workflow-run reads behind them. The shared per-repository read
|
|
577
|
+
still asks for open issues and pull requests. Unlike the report, which reads
|
|
578
|
+
each organisation's own `token_env`, `remediate` drives the run across every
|
|
579
|
+
configured organisation with the one token in `--token-env` (default
|
|
580
|
+
`GITHUB_TOKEN`), so a run covering more than one organisation needs a classic
|
|
581
|
+
PAT. Admin access to each repository it changes is sufficient for every
|
|
582
|
+
category, though not always required: GitHub's reference for updating a
|
|
583
|
+
repository also lets an organisation owner or security manager change
|
|
584
|
+
`security_and_analysis`, the `secret_scanning` write. The organisation owner
|
|
585
|
+
or security manager role (see [Token permissions](#token-permissions)) is
|
|
586
|
+
needed only for the organisation-wide alert reads, which feed the report's
|
|
587
|
+
alert counts. No category chooses its targets from them: each reads the
|
|
588
|
+
repository's own code-scanning analyses, secret scanning state, shared
|
|
589
|
+
GraphQL read or settings. Without the role those alert reads are refused and
|
|
590
|
+
their counts read as unknown, but each category still finds its targets among
|
|
591
|
+
the repositories the run lists.
|
|
592
|
+
|
|
593
|
+
That listing holds only the repositories both the account and the token can
|
|
594
|
+
see. GitHub leaves a private repository either one cannot access out of a
|
|
595
|
+
successful listing, with no error, so an unrestricted run can finish cleanly
|
|
596
|
+
having missed it. When you know which repositories a run should change, name
|
|
597
|
+
them with `--repos owner/name`: a name that matches no listed repository
|
|
598
|
+
stops the run (see [Remediation](#remediation)).
|
|
599
|
+
|
|
600
|
+
**Classic PAT:** `repo`, `security_events` and `read:org`. `repo` also covers
|
|
601
|
+
every write, provided the token's account holds the access described above.
|
|
602
|
+
`admin:org` stays optional, exactly as for the report, except as
|
|
603
|
+
the `codeql` caveat below describes.
|
|
604
|
+
|
|
605
|
+
**Fine-grained PAT, reads:** the repository permissions Metadata, Contents,
|
|
606
|
+
Dependabot alerts, Code scanning alerts, Secret scanning alerts, Issues,
|
|
607
|
+
Administration and Actions from the report's table. Keep Issues: a failed issue
|
|
608
|
+
read fails the repository's whole shared GraphQL read, which also carries
|
|
609
|
+
Dependabot alerts enablement, the auto-merge setting, the languages Code
|
|
610
|
+
Quality depends on, and the branch head the stale-CodeQL check measures
|
|
611
|
+
against. Those categories then read as unknown for that repository and get no
|
|
612
|
+
write, while CodeQL, secret scanning, security updates and private
|
|
613
|
+
vulnerability reporting, read separately, can still be written. Actions read covers the workflow state behind a stale
|
|
614
|
+
CodeQL configuration. Pull requests and the organisation Members permission
|
|
615
|
+
may be left out: a failed pull-request read affects only the pull-request data,
|
|
616
|
+
which `remediate` does not use, and it makes no membership read. The
|
|
617
|
+
organisation Administration permission stays optional, as for the report,
|
|
618
|
+
except as the `codeql` caveat below describes.
|
|
619
|
+
|
|
620
|
+
**Caveat for `codeql`:** a repository reads as CodeQL enabled only when it
|
|
621
|
+
has a CodeQL analysis, or when a required workflow that `ruleset_workflows`
|
|
622
|
+
maps to `codeql` covers it. The analysis check reads analyses on every branch,
|
|
623
|
+
not only the default branch, so a repository whose only CodeQL analysis came
|
|
624
|
+
from a feature branch reads as enabled and is not a target, though its default
|
|
625
|
+
branch has none. The check reads the newest 100 analyses, and when CodeQL is
|
|
626
|
+
not among them, a probe filtered to CodeQL; if that probe fails, CodeQL reads
|
|
627
|
+
as unknown for the run, so the repository is not a target whether or not it
|
|
628
|
+
has older CodeQL analyses. Any other CodeQL pipeline that has
|
|
629
|
+
not yet uploaded an analysis leaves the repository a `codeql` target: a
|
|
630
|
+
repository-local workflow, a required workflow the mapping does not name, one
|
|
631
|
+
whose ruleset the token cannot read, or an external pipeline that uploads with
|
|
632
|
+
the CodeQL CLI or the REST API. Enabling default setup there makes GitHub
|
|
633
|
+
reject the CodeQL uploads that pipeline later makes. Ruleset-read access
|
|
634
|
+
(classic `admin:org`, or fine-grained organisation Administration write)
|
|
635
|
+
closes only the unreadable-ruleset case, and only in part: ruleset coverage
|
|
636
|
+
is recognised for a ruleset that targets repositories by name, not for one
|
|
637
|
+
that targets them by repository ID or custom property. So whatever the token,
|
|
638
|
+
check every `codeql` target in the dry run against the repository's existing
|
|
639
|
+
CodeQL workflows and any external CodeQL pipeline before passing `--apply`.
|
|
640
|
+
The dry run names at most `report.top_n_cli` targets per category (default:
|
|
641
|
+
`report.top_n`, else 10) and counts the rest, and `remediate` has no flag to
|
|
642
|
+
change it. Each organisation takes the value from
|
|
643
|
+
its own `report` block, which inherits the global one, so to list every target
|
|
644
|
+
set `top_n_cli` to `0` in the global `report` block and remove or zero any
|
|
645
|
+
organisation's own `top_n_cli`; `--apply` acts on the targets the preview
|
|
646
|
+
counts but does not name. `--apply` does not replay the preview either: it
|
|
647
|
+
collects again and acts on the targets it finds then, so a repository created,
|
|
648
|
+
or newly reading as a `codeql` target, after the preview is changed without
|
|
649
|
+
having been checked. Apply `codeql` only to the repositories you checked, with
|
|
650
|
+
`--category codeql --repos owner/name,...`, and preview again first if their
|
|
651
|
+
state may have changed.
|
|
652
|
+
|
|
653
|
+
**Fine-grained PAT, writes:** each category writes through the endpoints below,
|
|
654
|
+
so a run limited with `--category` needs only the access those take:
|
|
655
|
+
|
|
656
|
+
| `--category` | Write | Fine-grained permission |
|
|
657
|
+
| ------------ | ----- | ----------------------- |
|
|
658
|
+
| `codeql` | `PATCH /repos/{owner}/{repo}/code-scanning/default-setup` | Not yet confirmed |
|
|
659
|
+
| `secret_scanning` | `PATCH /repos/{owner}/{repo}` (`security_and_analysis`) | Not yet confirmed |
|
|
660
|
+
| `dependabot_alerts_enabled` | `PUT /repos/{owner}/{repo}/vulnerability-alerts` | Not yet confirmed |
|
|
661
|
+
| `dependabot_updates_enabled` | `PUT .../vulnerability-alerts`, then `PUT .../automated-security-fixes` | Not yet confirmed |
|
|
662
|
+
| `private_vulnerability_reporting` | `PUT /repos/{owner}/{repo}/private-vulnerability-reporting` | Not yet confirmed |
|
|
663
|
+
| `auto_merge` | `PATCH /repos/{owner}/{repo}` (`allow_auto_merge`) | Not yet confirmed |
|
|
664
|
+
| `code_quality` | `PATCH /repos/{owner}/{repo}/code-quality/setup` | Administration: write |
|
|
665
|
+
| `codeql_stale_configurations` | `DELETE /repos/{owner}/{repo}/code-scanning/analyses/{id}`, and `PUT /repos/{owner}/{repo}/actions/workflows/{file}/enable` | Not yet confirmed |
|
|
666
|
+
|
|
667
|
+
Where the table says *Not yet confirmed*, this README does not yet name the
|
|
668
|
+
fine-grained permission GitHub requires; use a classic PAT for that category.
|
|
669
|
+
A write the token may not make fails for that repository and category only,
|
|
670
|
+
and the run lists it with GitHub's status code.
|
|
671
|
+
|
|
380
672
|
## Usage
|
|
381
673
|
|
|
382
674
|
### Org mode (scheduled report)
|
|
@@ -384,7 +676,7 @@ unverified.
|
|
|
384
676
|
```yaml
|
|
385
677
|
- name: "Security report"
|
|
386
678
|
id: report
|
|
387
|
-
uses: lfreleng-actions/github-security-report-action@v0.
|
|
679
|
+
uses: lfreleng-actions/github-security-report-action@a5ad54423029f7b4923e50625c85a7dace1fd0b4 # v0.25.0
|
|
388
680
|
with:
|
|
389
681
|
scope: "org"
|
|
390
682
|
config: "${{ secrets.GSR_CONFIG || vars.GSR_CONFIG }}"
|
|
@@ -405,12 +697,15 @@ digest only on the configured `report_day` (default Tuesday).
|
|
|
405
697
|
|
|
406
698
|
```yaml
|
|
407
699
|
- name: "Security report"
|
|
408
|
-
uses: lfreleng-actions/github-security-report-action@v0.
|
|
700
|
+
uses: lfreleng-actions/github-security-report-action@a5ad54423029f7b4923e50625c85a7dace1fd0b4 # v0.25.0
|
|
409
701
|
with:
|
|
410
702
|
scope: "repo"
|
|
703
|
+
repo: "${{ github.repository }}" # lets the job run without a checkout
|
|
411
704
|
token: "${{ github.token }}"
|
|
412
705
|
fail_threshold: "high" # fail the job on any open high/critical finding
|
|
413
|
-
# requires: permissions:
|
|
706
|
+
# requires: permissions:
|
|
707
|
+
# { actions: read, security-events: read, vulnerability-alerts: read }
|
|
708
|
+
# (see "Repo mode: the job token" under Token permissions)
|
|
414
709
|
```
|
|
415
710
|
|
|
416
711
|
Repo mode renders one repository to the terminal and the job summary. It
|
|
@@ -460,6 +755,7 @@ lists every key with its type, default and description, and
|
|
|
460
755
|
"issue_age_warn_days": 30,
|
|
461
756
|
"issue_age_error_days": 60,
|
|
462
757
|
"graph_batch": 10,
|
|
758
|
+
"fuzz_languages": ["Python", "Go"],
|
|
463
759
|
"concurrency": 9,
|
|
464
760
|
"workflow_runs": {
|
|
465
761
|
"windows": { "cli": [7], "report": [7, 30, 90], "slack": [7] }
|
|
@@ -587,7 +883,7 @@ The example above hides Zizmor on every surface, and keeps Releases / Tagging
|
|
|
587
883
|
out of the terminal and Slack while still publishing it to the Markdown and HTML
|
|
588
884
|
Pages output. The valid category keys are: `codeql`,
|
|
589
885
|
`codeql_stale_configurations`, `codeql_language_coverage`, `scorecard`,
|
|
590
|
-
`zizmor`, `aislop`, `dependabot_alerts`, `secret_scanning`,
|
|
886
|
+
`zizmor`, `aislop`, `fuzz`, `dependabot_alerts`, `secret_scanning`,
|
|
591
887
|
`dependabot_alerts_enabled`, `dependabot_updates_enabled`,
|
|
592
888
|
`dependabot_cooldown`, `releases`, `mutable_releases`,
|
|
593
889
|
`private_vulnerability_reporting`, `auto_merge`, `malware_findings`,
|
|
@@ -817,8 +1113,8 @@ total open issues, then on the oldest issue.
|
|
|
817
1113
|
Ordering is resolved once, when the report is built, so every surface and
|
|
818
1114
|
`report.json` agree. It applies to the generic tables (GitHub Issues, Releases /
|
|
819
1115
|
Tagging, Mutable Releases, the Dependabot posture tables) **and** to the severity
|
|
820
|
-
signal tables (CodeQL, OpenSSF Scorecard, zizmor, AI Slop, Dependabot
|
|
821
|
-
secret scanning).
|
|
1116
|
+
signal tables (CodeQL, OpenSSF Scorecard, zizmor, AI Slop, Fuzzing, Dependabot
|
|
1117
|
+
alerts, secret scanning).
|
|
822
1118
|
|
|
823
1119
|
The signal tables resolve their terms against a fixed vocabulary rather than a
|
|
824
1120
|
rendered column list, because their columns vary by surface and by data (Slack
|
|
@@ -828,7 +1124,7 @@ repository carries note-level findings):
|
|
|
828
1124
|
| Signal | Accepted sort names |
|
|
829
1125
|
| ------ | ------------------- |
|
|
830
1126
|
| OpenSSF Scorecard | `repository`, `score`, `critical`, `high`, `medium`, `low`, `info`, `total` |
|
|
831
|
-
| CodeQL, zizmor, AI Slop, Dependabot alerts | `repository`, `critical`, `high`, `medium`, `low`, `info`, `total` |
|
|
1127
|
+
| CodeQL, zizmor, AI Slop, Fuzzing, Dependabot alerts | `repository`, `critical`, `high`, `medium`, `low`, `info`, `total` |
|
|
832
1128
|
| Secret Scanning | `repository`, `open` |
|
|
833
1129
|
|
|
834
1130
|
`informational` is accepted for `info`, and `total` for secret scanning's `open`.
|
|
@@ -867,7 +1163,7 @@ By default the report sorts its sections into three bands:
|
|
|
867
1163
|
|
|
868
1164
|
| Band | Contains | Why |
|
|
869
1165
|
| ---- | -------- | --- |
|
|
870
|
-
| **Priority** | Secret Scanning, Dependabot: Malware Findings, Dependabot: Security Alerts, CodeQL, Mutable Releases | Findings worth acting on today |
|
|
1166
|
+
| **Priority** | Secret Scanning, Dependabot: Malware Findings, Dependabot: Security Alerts, CodeQL, Fuzzing, Mutable Releases | Findings worth acting on today |
|
|
871
1167
|
| **Middle** | Everything else | Neither urgent nor constant |
|
|
872
1168
|
| **BAU** | OpenSSF Scorecard, GitHub Issues, GitHub Issues: Assigned to Me, Pull Requests, Pull Requests: Assigned to Me | Carry data every run, so none of it is news |
|
|
873
1169
|
|
|
@@ -1041,7 +1337,8 @@ requests are **not** counted: the GraphQL `issues` connection excludes them.
|
|
|
1041
1337
|
classic PAT's `repo` scope already covers it. Without it GitHub serves the query
|
|
1042
1338
|
with HTTP 200 and this one field null, so affected repositories are reported as
|
|
1043
1339
|
`❓ Unknown` rather than counted as having no open issues — an unreadable backlog
|
|
1044
|
-
is never presented as a clean one.
|
|
1340
|
+
is never presented as a clean one. [Token permissions](#token-permissions) lists
|
|
1341
|
+
every permission the report needs.
|
|
1045
1342
|
|
|
1046
1343
|
#### Issue colours and age thresholds
|
|
1047
1344
|
|
|
@@ -1409,7 +1706,7 @@ github-security-report report --hide pull_requests_assigned
|
|
|
1409
1706
|
The Action exposes the same control through a `hide` input:
|
|
1410
1707
|
|
|
1411
1708
|
```yaml
|
|
1412
|
-
- uses: lfreleng-actions/github-security-report-action@
|
|
1709
|
+
- uses: lfreleng-actions/github-security-report-action@a5ad54423029f7b4923e50625c85a7dace1fd0b4 # v0.25.0
|
|
1413
1710
|
with:
|
|
1414
1711
|
hide: "pull_requests_assigned" # space- or comma-separated
|
|
1415
1712
|
```
|
|
@@ -1485,7 +1782,8 @@ stuck one first.
|
|
|
1485
1782
|
**Permissions.** A fine-grained PAT needs **Pull requests: read**; a classic
|
|
1486
1783
|
PAT's `repo` scope already covers it. Without it the connection comes back null
|
|
1487
1784
|
and affected repositories are reported as `❓ Unknown` rather than as having no
|
|
1488
|
-
open pull requests.
|
|
1785
|
+
open pull requests. [Token permissions](#token-permissions) lists every
|
|
1786
|
+
permission the report needs.
|
|
1489
1787
|
|
|
1490
1788
|
### Inside or outside the organisation
|
|
1491
1789
|
|
|
@@ -1536,11 +1834,12 @@ The column understates rather than inventing an outsider.
|
|
|
1536
1834
|
**Members: read** (fine-grained). Without it the terminal report prints
|
|
1537
1835
|
`⚠️ Token lacks read/organisation permission; results incomplete for <org>`
|
|
1538
1836
|
and reports externally-raised counts as a lower bound rather than guessing from
|
|
1539
|
-
`authorAssociation` alone.
|
|
1837
|
+
`authorAssociation` alone. [Token permissions](#token-permissions) lists every
|
|
1838
|
+
permission the report needs.
|
|
1540
1839
|
|
|
1541
1840
|
### Organisation feature gating
|
|
1542
1841
|
|
|
1543
|
-
The workflow-driven signals (OpenSSF Scorecard, zizmor, aislop) need
|
|
1842
|
+
The workflow-driven signals (OpenSSF Scorecard, zizmor, aislop, fuzz) need
|
|
1544
1843
|
organisation-deployed workflows before they produce any data (see the
|
|
1545
1844
|
[organisation scan setup guide](docs/org-scan-setup.md)). By default the tool
|
|
1546
1845
|
runs a cheap support check per organisation before collecting each of them:
|
|
@@ -1599,9 +1898,11 @@ flight when the first failure arrives were issued at the old size, so on a
|
|
|
1599
1898
|
slow day up to four oversized batches, rather than one, may fail before the
|
|
1600
1899
|
smaller size takes effect; that bounded cost buys the overlap. Only a
|
|
1601
1900
|
single-repository query GitHub still cannot answer, or a failure that a
|
|
1602
|
-
smaller query could not fix (a `403
|
|
1603
|
-
`
|
|
1604
|
-
|
|
1901
|
+
smaller query could not fix (a `403` or a `500`/`503` outage rather than a
|
|
1902
|
+
`502`/`504` timeout), aborts the run with exit code `3`, and the queries
|
|
1903
|
+
still in flight are cancelled first. An exhausted GraphQL rate limit is not
|
|
1904
|
+
retried smaller either: it aborts the run with exit code `6` (see
|
|
1905
|
+
[Exit codes](#exit-codes)).
|
|
1605
1906
|
|
|
1606
1907
|
The value can be set three ways, in this order of precedence:
|
|
1607
1908
|
|
|
@@ -1846,10 +2147,11 @@ is about 25 MB for a 140-repository organisation.
|
|
|
1846
2147
|
|
|
1847
2148
|
### Pass/fail severity cutoff
|
|
1848
2149
|
|
|
1849
|
-
The severity-ranked signals (CodeQL, Scorecard, Zizmor, aislop,
|
|
1850
|
-
alerts) use a `fail_severity` cutoff to decide when a repository
|
|
1851
|
-
failure. A repository is flagged as an offender only when it
|
|
1852
|
-
**at or above** the cutoff; findings below it fold into the
|
|
2150
|
+
The severity-ranked signals (CodeQL, Scorecard, Zizmor, aislop, fuzz,
|
|
2151
|
+
Dependabot alerts) use a `fail_severity` cutoff to decide when a repository
|
|
2152
|
+
counts as a failure. A repository is flagged as an offender only when it
|
|
2153
|
+
carries a finding **at or above** the cutoff; findings below it fold into the
|
|
2154
|
+
clean count.
|
|
1853
2155
|
Severities run (lowest to highest) `informational`, `low`, `medium`, `high`,
|
|
1854
2156
|
`critical` — `informational` being the sub-low rung for SARIF `none` findings
|
|
1855
2157
|
and unclassifiable alerts. Zizmor's SARIF `note` findings normalise to `low`
|
|
@@ -1859,8 +2161,9 @@ SARIF), matching the ruleset-enforced PR gate that blocks on note-and-above.
|
|
|
1859
2161
|
aislop populates the same SARIF level axis and normalises identically.
|
|
1860
2162
|
|
|
1861
2163
|
The global default cutoff is `medium`, so `low` and `informational` findings
|
|
1862
|
-
pass. Zizmor and aislop default to `low` (only `informational` passes).
|
|
1863
|
-
|
|
2164
|
+
pass. Zizmor and aislop default to `low` (only `informational` passes). Fuzz
|
|
2165
|
+
keeps `medium`: every fuzz failure arrives at SARIF `error`, which normalises
|
|
2166
|
+
to `high`, so each one already fails. Override the cutoff per category under
|
|
1864
2167
|
`report.categories.<key>.fail_severity`:
|
|
1865
2168
|
|
|
1866
2169
|
```json
|
|
@@ -2062,26 +2365,87 @@ API in the same way.
|
|
|
2062
2365
|
| ---- | ------- |
|
|
2063
2366
|
| `0` | The report ran. |
|
|
2064
2367
|
| `1` | Repo mode only: findings met or exceeded `--fail-threshold`. |
|
|
2065
|
-
| `2` | Usage or configuration error (bad flag,
|
|
2368
|
+
| `2` | Usage or configuration error (bad flag, bad config, unset token). |
|
|
2066
2369
|
| `3` | The GitHub API was unusable after the retry budget (see below). |
|
|
2067
2370
|
| `4` | GitHub rejected the credentials (HTTP 401). |
|
|
2068
|
-
|
|
2069
|
-
|
|
2371
|
+
| `5` | A repository listing answered `403` or `404`, with no rate limit. |
|
|
2372
|
+
| `6` | A rate limit with nothing left stopped the run (causes below). |
|
|
2373
|
+
|
|
2374
|
+
Code `6` has five causes, and a rate-limited `403` is one of them, not `5`:
|
|
2375
|
+
|
|
2376
|
+
- a core or GraphQL budget already spent when the run started;
|
|
2377
|
+
- a rate-limited listing, including a `403` whose message names a secondary
|
|
2378
|
+
rate limit;
|
|
2379
|
+
- a listing page that spent the last request;
|
|
2380
|
+
- a read refused mid-run because the primary budget is spent (a `403` or
|
|
2381
|
+
`429` with `x-ratelimit-remaining: 0`) and the reset is further away than
|
|
2382
|
+
the retry budget allows;
|
|
2383
|
+
- a GraphQL prefetch refused because a GraphQL rate limit is spent.
|
|
2384
|
+
|
|
2385
|
+
A read refused mid-run waits for the reset, and retries, only when the
|
|
2386
|
+
later of `x-ratelimit-reset` and any `Retry-After`, plus a second, fits in
|
|
2387
|
+
what is left of that request's retry budget. Otherwise the run stops at
|
|
2388
|
+
once: retrying on the ordinary schedule cannot outlast the reset, and
|
|
2389
|
+
GitHub warns that continuing to send requests while rate limited may get an
|
|
2390
|
+
integration banned. With no `x-ratelimit-reset`, the read is retried on the
|
|
2391
|
+
ordinary schedule and the run stops when that is spent. The message names
|
|
2392
|
+
the rate-limit resource, the endpoint, and when the budget resets in UTC
|
|
2393
|
+
with the minutes to wait. A secondary rate limit (no
|
|
2394
|
+
`x-ratelimit-remaining: 0`) that outlives the retry budget still degrades
|
|
2395
|
+
that one read to unknown, and a `remediate` write refused for a spent budget
|
|
2396
|
+
still reports that target's failure rather than stopping the run.
|
|
2397
|
+
|
|
2398
|
+
Codes `3` to `6` are **aborts, not reports**: nothing is written and no Pages
|
|
2070
2399
|
artifact is produced. That is deliberate. A token that has expired, been revoked
|
|
2071
2400
|
or been rotated makes every read fail, and a run that degraded instead would
|
|
2072
2401
|
render a complete, confidently clean report — `0 repositories analysed`, every
|
|
2073
2402
|
section `No data` or `All Clean` — and a scheduled job would then publish it
|
|
2074
2403
|
over the last good one. Reporting false data is worse than reporting none, so
|
|
2075
|
-
the run stops at the first rejected request.
|
|
2404
|
+
the run stops at the first rejected request. A repository listing the token
|
|
2405
|
+
cannot read, or a rate limit with nothing left, would produce the same report,
|
|
2406
|
+
so they stop the run too.
|
|
2407
|
+
|
|
2408
|
+
For `remediate`, "nothing is written" holds only when the pre-flight stops the
|
|
2409
|
+
run (any `5`, a `6` from the pre-flight, and a `3` or `4` raised before
|
|
2410
|
+
collection starts). After the pre-flight passes, `remediate` collects and
|
|
2411
|
+
writes one organisation at a time, so a `3`, `4` or `6` from a later
|
|
2412
|
+
organisation comes after the earlier ones' writes have been applied. Check
|
|
2413
|
+
what the run printed before re-running; a re-run enables only what it finds
|
|
2414
|
+
still off.
|
|
2415
|
+
|
|
2416
|
+
Org-mode `report` and `remediate` check for these before they collect
|
|
2417
|
+
anything, for every configured organisation before the first. `report` reads
|
|
2418
|
+
each organisation's own `token_env`; `remediate` reads only its one
|
|
2419
|
+
`--token-env` token, never the per-organisation ones. Every token is set (all
|
|
2420
|
+
missing ones are named together, exit `2`); one `GET /rate_limit` per
|
|
2421
|
+
distinct token, which costs no rate limit, finds a spent core or GraphQL
|
|
2422
|
+
budget (exit `6`, naming the resource and when it resets); and one
|
|
2423
|
+
single-repository page of each organisation's listing finds a `403` or `404`
|
|
2424
|
+
(exit `5`). The `/rate_limit` probe is best effort: it is made once with a
|
|
2425
|
+
short timeout, and when it times out, cannot connect, answers anything but
|
|
2426
|
+
`200`, `401` or a refusal for a spent rate limit (exit `6`), or sends an
|
|
2427
|
+
unreadable body, its budget, scope and expiry
|
|
2428
|
+
checks are skipped for that token (logged at DEBUG) and the run carries on.
|
|
2429
|
+
The code `5` message names the organisation and what to check:
|
|
2430
|
+
its name, a classic PAT's SSO authorisation for it, or a fine-grained PAT's
|
|
2431
|
+
resource owner and repository access. A listing that is rate limited
|
|
2432
|
+
(including a `403` whose message names a secondary rate limit), or whose page
|
|
2433
|
+
spends the last request, exits `6`. The message gives the later of the
|
|
2434
|
+
`Retry-After` wait and, when the budget is spent, its reset; with neither, it
|
|
2435
|
+
advises waiting at least a minute. One that still fails after the retry
|
|
2436
|
+
budget, or whose page holds an entry that is not a repository, exits `3`. A
|
|
2437
|
+
token GitHub rejects exits `4`, and the message says which token. A run that
|
|
2438
|
+
passes prints nothing new. A listing whose *later* page fails mid-run still
|
|
2439
|
+
produces a report marked incomplete, unless a spent rate limit refused it
|
|
2440
|
+
(exit `6`).
|
|
2076
2441
|
|
|
2077
2442
|
Code `3` covers a GitHub API that could not be reached at all, and a GraphQL
|
|
2078
2443
|
prefetch that failed as a whole: either a size-shaped failure (`502`/`504`
|
|
2079
2444
|
timeout, `200` with no data, resource limits exceeded) that persisted even
|
|
2080
2445
|
after the batch had been halved down to one repository, or a failure that
|
|
2081
|
-
halving could not have fixed (`403`,
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
later, wait for the rate-limit budget to reset, or check the token's
|
|
2446
|
+
halving could not have fixed (`403`, a `500`/`503` outage), which aborts at
|
|
2447
|
+
once. The message reports the status or cause and ends with the matching
|
|
2448
|
+
next step — a smaller `--graph-batch`, retry later, or check the token's
|
|
2085
2449
|
permissions — so read it rather than assuming "retry later" (see
|
|
2086
2450
|
[GraphQL prefetch batch size](#graphql-prefetch-batch-size)).
|
|
2087
2451
|
|
|
@@ -2097,14 +2461,17 @@ surfaces are acted on — repositories whose state could not be read are counted
|
|
|
2097
2461
|
as *unknown* and are never written to, so remediation never blind-writes.
|
|
2098
2462
|
|
|
2099
2463
|
It is **dry run by default** (these are privileged writes); pass `--apply` to
|
|
2100
|
-
make changes.
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2464
|
+
make changes. Each run collects afresh, so `--apply` acts on what it finds
|
|
2465
|
+
then, not on the plan an earlier dry run printed. A single **write-capable**
|
|
2466
|
+
token (from `--token-env`, default `GITHUB_TOKEN`) drives both the read and the
|
|
2467
|
+
writes across every configured organisation, so it bypasses the per-org
|
|
2468
|
+
read-only `token_env` in the config.
|
|
2469
|
+
[The `remediate` subcommand](#the-remediate-subcommand) under Token permissions
|
|
2470
|
+
lists the scopes and permissions it needs, by category.
|
|
2104
2471
|
|
|
2105
2472
|
```bash
|
|
2106
|
-
#
|
|
2107
|
-
#
|
|
2473
|
+
# Token scopes and permissions: see "The remediate subcommand" under
|
|
2474
|
+
# Token permissions.
|
|
2108
2475
|
source ~/.secrets.github.classic.god # exports $GITHUB_TOKEN
|
|
2109
2476
|
|
|
2110
2477
|
# Dry run (default): preview every change, touch nothing.
|
|
@@ -2194,7 +2561,8 @@ repositories are never written. GitHub provisions the first analysis
|
|
|
2194
2561
|
asynchronously. A `409` (an update already in progress), a `403` (an archived
|
|
2195
2562
|
repository, or Code Quality not allowed for it) or a `422` fails that
|
|
2196
2563
|
repository only and names the cause. The token needs the classic `repo`
|
|
2197
|
-
scope, or a fine-grained token's Administration: write
|
|
2564
|
+
scope, or a fine-grained token's Administration: write (see
|
|
2565
|
+
[The `remediate` subcommand](#the-remediate-subcommand)). See
|
|
2198
2566
|
[ADR-0006](docs/adr/0006-github-code-quality.md) for the reasoning.
|
|
2199
2567
|
|
|
2200
2568
|
### Cleaning up stale CodeQL configurations
|
|
@@ -2256,7 +2624,8 @@ an interrupted run's next pass picks up the remaining analyses. GitHub answers
|
|
|
2256
2624
|
requests it will not authorise with `404`, so a deletion's `404` counts as
|
|
2257
2625
|
already done only once the analysis also reads back as gone; a token that may
|
|
2258
2626
|
not delete fails instead of reporting a cleanup that never happened. The token
|
|
2259
|
-
needs the classic `repo` scope
|
|
2627
|
+
needs the classic `repo` scope (see
|
|
2628
|
+
[The `remediate` subcommand](#the-remediate-subcommand)). See
|
|
2260
2629
|
[ADR-0005](docs/adr/0005-codeql-configuration-cleanup.md) for the reasoning.
|
|
2261
2630
|
|
|
2262
2631
|
## Bulk Remediation Scripts
|
|
@@ -2285,8 +2654,9 @@ the current state of each repository, enables the feature where it is off, and
|
|
|
2285
2654
|
verifies the result.
|
|
2286
2655
|
|
|
2287
2656
|
```bash
|
|
2288
|
-
#
|
|
2289
|
-
#
|
|
2657
|
+
# The token needs the classic `repo` scope from an account with admin access
|
|
2658
|
+
# to each repository, plus `read:org` to enumerate them. See "Token
|
|
2659
|
+
# permissions".
|
|
2290
2660
|
source ~/.secrets.github.classic.god # exports $GITHUB_TOKEN
|
|
2291
2661
|
|
|
2292
2662
|
# Dry run (default): preview every change, touch nothing.
|