From 0c9a017e98b77696bd1a9b874a0961d89bbb0c0c Mon Sep 17 00:00:00 2001 From: Miguel Beltran Date: Sat, 5 Dec 2020 13:12:00 +0100 Subject: [PATCH 1/2] enable unsecure commands on ci --- .github/workflows/scripts/install-flutter.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/scripts/install-flutter.sh b/.github/workflows/scripts/install-flutter.sh index f50bc20b42..e831895f29 100755 --- a/.github/workflows/scripts/install-flutter.sh +++ b/.github/workflows/scripts/install-flutter.sh @@ -1,5 +1,7 @@ #!/bin/bash +setenv ACTIONS_ALLOW_UNSECURE_COMMANDS true + BRANCH=$1 if [ "$BRANCH" == "dev" ] @@ -10,4 +12,4 @@ then fi git clone https://github.com/flutter/flutter.git --depth 1 -b $BRANCH _flutter -echo "::add-path::$GITHUB_WORKSPACE/_flutter/bin" \ No newline at end of file +echo "::add-path::$GITHUB_WORKSPACE/_flutter/bin" From f22abd13c60bb70111a563d521e731383cbf3721 Mon Sep 17 00:00:00 2001 From: Miguel Beltran Date: Sat, 5 Dec 2020 13:19:00 +0100 Subject: [PATCH 2/2] add env var --- .github/workflows/all_plugins.yaml | 3 +++ .github/workflows/scripts/install-flutter.sh | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/all_plugins.yaml b/.github/workflows/all_plugins.yaml index d5b7fa5721..cd6fc04857 100644 --- a/.github/workflows/all_plugins.yaml +++ b/.github/workflows/all_plugins.yaml @@ -1,5 +1,8 @@ name: all_plugins +env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' + on: pull_request: push: diff --git a/.github/workflows/scripts/install-flutter.sh b/.github/workflows/scripts/install-flutter.sh index e831895f29..2591f60536 100755 --- a/.github/workflows/scripts/install-flutter.sh +++ b/.github/workflows/scripts/install-flutter.sh @@ -1,7 +1,5 @@ #!/bin/bash -setenv ACTIONS_ALLOW_UNSECURE_COMMANDS true - BRANCH=$1 if [ "$BRANCH" == "dev" ]