簡體   English   中英

Select 是,作為 Github 操作中的一個選項

[英]Select yes as an option in Github Actions

我一直在研究創建 easy-rsa 證書的管道,它工作正常,但最近它因錯誤而失敗:

You are about to sign the following certificate.
Please check over the details shown below for accuracy. Note that this request
has not been cryptographically verified. Please be sure it came from a trusted
source or that you have verified the request checksum with the sender.

Request subject, to be signed as a client certificate for 825 days:

subject=
    commonName                = joni.lehto


Type the word 'yes' to continue, or any other input to abort.
  Confirm request details: 

Notice
------
Aborting without confirmation.

由於我無法輸入“是”,因為它是 github 操作管道我被卡住了,任何人都可以幫助我,這是該步驟的 yaml:

  - name: Creating Client Certificate and key
    run: | 
     sudo su -
     cd easyrsa3
     yes | ./easyrsa --passout=file:pki/file.txt build-client-full ${{ github.event.inputs.username }} 

首先使用--batch選項嘗試相同的./easyrsa

--batch         : set automatic (no-prompts when possible) mode

那應該避免這個提示,讓您的 GitHub 操作繼續進行。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM