From 1ecc97b930a7a382ee0dbddd9071df7833145a4f Mon Sep 17 00:00:00 2001 From: Jeroen Knoops Date: Mon, 14 Feb 2022 14:04:54 +0100 Subject: [PATCH] Add support for Base64 Encoded rulesets Closes #8 --- action.yaml | 2 +- bin/loop.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/action.yaml b/action.yaml index 0d0ac26..7734bbb 100644 --- a/action.yaml +++ b/action.yaml @@ -5,7 +5,7 @@ branding: color: purple inputs: ruleset: - description: 'file path or url that links to a ruleset config file' + description: 'Base64 encoded ruleset config file or url to ruleset config file.' required: true gh_token: description: 'Github token that has permissions to create labels, issues and has read rights to view files.' diff --git a/bin/loop.sh b/bin/loop.sh index 4c08586..9abeb94 100755 --- a/bin/loop.sh +++ b/bin/loop.sh @@ -25,6 +25,6 @@ then echo "Link valid" check_target_repos "--rulesetUrl" else - echo "No link, assuming file path" - check_target_repos "-r" + echo "No link, assuming base64 encoded file" + check_target_repos "-r ""$RULESET""" fi