Skip to content

Commit 5cfdcb3

Browse files
author
Josh Holtz
committed
Added key for making writable deploy key
1 parent af83cbe commit 5cfdcb3

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

lib/fastlane/plugin/github_action/actions/github_action_action.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def self.generate_deploy_key(params)
155155
body = {
156156
title: deploy_key_title,
157157
key: k.ssh_public_key,
158-
read_only: true
158+
read_only: !params[:writable_deploy_key]
159159
}
160160
post_deploy_key_resp = self.match_repo_post(params, "/keys", body)
161161
UI.message("Created Deploy Key")
@@ -324,6 +324,11 @@ def self.available_options
324324
env_name: "FL_GITHUB_ACTIONS_MATCH_REPO",
325325
description: "Name of match repository",
326326
optional: true),
327+
FastlaneCore::ConfigItem.new(key: :writable_deploy_key,
328+
env_name: "FL_GITHUB_ACTIONS_WRITABLE_DEPLOY_KEY",
329+
description: "Determines if writable deploy key is used",
330+
default_value: false,
331+
type: Boolean),
327332
FastlaneCore::ConfigItem.new(key: :dotenv_paths,
328333
env_name: "FL_GITHUB_ACTINOS_DOTENV_PATHS",
329334
description: "Paths of .env files to parse",
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module Fastlane
22
module GithubAction
3-
VERSION = "1.0.0"
3+
VERSION = "1.1.0"
44
end
55
end

0 commit comments

Comments
 (0)