Skip to content

Commit

Permalink
[WIP] multi-repo-action: Parameterize config
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Augustus <foo@auggie.dev>
  • Loading branch information
justaugustus committed May 15, 2022
1 parent e826ce1 commit 1c56892
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions multi-repo-action/org-workflow-add.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ import (
)

const (
orgName = "organization name"
pat = "personal access token"
orgName = "organization name"
pat = "personal access token"
workflowFile = ".github/workflows/scorecards-analysis.yml"
)

// RepoList leave empty to process all repos under org (optional).
Expand Down Expand Up @@ -100,7 +101,7 @@ func main() {
context,
orgName,
repoName,
".github/workflows/scorecards-analysis.yml",
workflowFile,
&github.RepositoryContentGetOptions{},
)
if scoreFileContent != nil || err == nil {
Expand Down Expand Up @@ -157,7 +158,7 @@ func main() {
context,
orgName,
repoName,
".github/workflows/scorecards-analysis.yml",
workflowFile,
opts,
)
if err != nil {
Expand Down

0 comments on commit 1c56892

Please sign in to comment.