Skip to content

Commit

Permalink
input yaml parsing for trusted github accounts
Browse files Browse the repository at this point in the history
  • Loading branch information
raianand committed Apr 2, 2024
1 parent 81580b2 commit 07eb28d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion badges/coverage.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ async function run() {
const allowHTTP = core.getInput('allow_http')
const defaultPolicy = core.getInput('default_policy')
const egressRulesYAML = core.getInput('egress_rules')
const trustedGithubAccounts = core.getInput('trusted_github_accounts')
const trustedGithubAccountsYAML = core.getInput('trusted_github_accounts')
const trustedGithubAccounts = YAML.parse(trustedGithubAccountsYAML)
const trustedGithubAccountsString = trustedGithubAccounts.push(repoOwner).reverse().join(',')

// Verify that egress_rules_yaml is valid YAML
Expand Down

0 comments on commit 07eb28d

Please sign in to comment.