@@ -30,7 +30,7 @@ inputs:
3030 allow-all-tools :
3131 description : ' Allow all tools without approval'
3232 required : false
33- default : ' true'
33+ default : true
3434 allowed-tools :
3535 description : ' Comma-separated list of tools to allow (e.g., "shell(rm),shell(git push)")'
3636 required : false
@@ -53,7 +53,7 @@ inputs:
5353 enable-all-github-mcp-tools :
5454 description : ' Enable all GitHub MCP tools'
5555 required : false
56- default : ' false'
56+ default : false
5757 resume-session :
5858 description : ' Resume from a previous session ID (use "latest" for most recent)'
5959 required : false
@@ -68,6 +68,9 @@ inputs:
6868 description : ' Set the log level (choices: "none", "error", "warning", "info", "debug", "all", "default")'
6969 required : false
7070 default : ' all'
71+ options :
72+ description : ' Additional options to pass to the Copilot CLI (e.g., "--no-custom-instructions --screen-reader --no-color --model gpt-5")'
73+ required : false
7174outputs :
7275 logs-path :
7376 description : ' Path to the copilot logs directory'
8689 shell : bash
8790 run : |
8891 # Script
89-
92+
9093 echo "::group::Install GitHub Copilot CLI"
9194 if [ "$COPILOT_VERSION" = "latest" ]; then
9295 npm install -g @github/copilot
@@ -161,6 +164,9 @@ runs:
161164 if [ -n "$LOG_LEVEL" ]; then
162165 COPILOT_ARGS+="--log-level $LOG_LEVEL "
163166 fi
167+ if [ -n "$EXTRA_ARGS" ]; then
168+ COPILOT_ARGS+="$EXTRA_ARGS "
169+ fi
164170 COPILOT_ARGS+="--log-dir $HOME/.copilot/logs"
165171
166172 echo "$COPILOT_ARGS"
@@ -195,6 +201,7 @@ runs:
195201 ENABLE_ALL_GITHUB_MCP_TOOLS : ${{ inputs.enable-all-github-mcp-tools }}
196202 RESUME_SESSION : ${{ inputs.resume-session }}
197203 LOG_LEVEL : ${{ inputs.log-level }}
204+ EXTRA_ARGS : ${{ inputs.options }}
198205 - name : Upload Copilot Artifacts
199206 uses : actions/upload-artifact@v4
200207 if : ${{ always() && inputs.upload-artifact == 'true' }}
0 commit comments