Skip to content

Commit 400953a

Browse files
NicelyDunn7Copilot
andauthored
Refactor Secret Scanning pattern docs (#58633)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 1056d30 commit 400953a

File tree

14 files changed

+30936
-50
lines changed

14 files changed

+30936
-50
lines changed

.github/workflows/sync-secret-scanning.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
git config --global user.name "docs-bot"
5454
git config --global user.email "77750099+docs-bot@users.noreply.github.com"
5555
56-
branchname=sync-secret-scanning-${{ steps.secret-scanning-sync.outputs.sha }}
56+
branchname=sync-secret-scanning-`date +%Y%m%d%H%M%S`
5757
5858
remotesha=$(git ls-remote --heads origin $branchname)
5959
if [ -n "$remotesha" ]; then

src/github-apps/scripts/sync.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,9 @@ async function getProgActorResourceContent({
579579
if (gitHubSourceDirectory) {
580580
files = await getProgActorContentFromDisk(gitHubSourceDirectory)
581581
} else {
582-
files = await getDirectoryContents(owner!, repo!, branch!, resourcePath!)
582+
files = (await getDirectoryContents(owner!, repo!, branch!, resourcePath!)).map(
583+
(file) => file.content,
584+
)
583585
}
584586

585587
// We need to format the file content into a single object. Each file
File renamed without changes.

0 commit comments

Comments
 (0)