GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Update fix-yaml-config.ts · probe-lab/github-mgmt@cc6aa79

This repository was archived by the owner on Sep 26, 2025. It is now read-only.

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • scripts/src/actions
    • fix-yaml-config.ts
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎scripts/src/actions/fix-yaml-config.ts‎

Copy file name to clipboardExpand all lines: scripts/src/actions/fix-yaml-config.ts
+33-11Lines changed: 33 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,41 @@ import 'reflect-metadata'
22
import {Repository} from '../resources/repository'
33
import {format} from './shared/format'
44
import {setPropertyInAllRepos} from './shared/set-property-in-all-repos'
5+
import {toggleArchivedRepos} from './shared/toggle-archived-repos'
6+
import {describeAccessChanges} from './shared/describe-access-changes'
7+
8+
import * as core from '@actions/core'
59

610
function isPublic(repository: Repository) {
711
return repository.visibility === 'public'
812
}
913

10-
setPropertyInAllRepos(
11-
'secret_scanning',
12-
true,
13-
r => isPublic(r)
14-
)
15-
setPropertyInAllRepos(
16-
'secret_scanning_push_protection',
17-
true,
18-
r => isPublic(r)
19-
)
20-
format()
14+
async function run() {
15+
await setPropertyInAllRepos(
16+
'secret_scanning',
17+
true,
18+
r => isPublic(r)
19+
)
20+
await setPropertyInAllRepos(
21+
'secret_scanning_push_protection',
22+
true,
23+
r => isPublic(r)
24+
)
25+
await toggleArchivedRepos()
26+
const accessChangesDescription = await describeAccessChanges()
27+
core.setOutput(
28+
'comment',
29+
`The following access changes will be introduced as a result of applying the plan:
30+
31+
<details><summary>Access Changes</summary>
32+
33+
\`\`\`
34+
${accessChangesDescription}
35+
\`\`\`
36+
37+
</details>`
38+
)
39+
await format()
40+
}
41+
42+
run()

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.