如何屏蔽github中密码字段的用户输入workflow_dispatch

问题描述 投票:0回答:1

以下是 github actions 工作流程:

name: CALLERDB - AD

on:

  workflow_dispatch:

    inputs:

      DBLoginID:
        description: 'Enter the user id'
        required: true
        type: string

      my_password:
        description: 'Enter your password'
        required: true
        type: password

我需要用户输入密码,该密码不应是明文/可见。

相反,它应该被掩盖为点

.
或星号
*

但是,正如您在下面的快照中看到的,密码以明文形式非常明显。

我不想将密码保存在 github 机密中,因为有 150 个用户将使用各自的 id 密码运行工作流程,并且密码策略将密码设置为每 2 个月过期。

您能否建议一个可行的解决方案?

github github-actions masking github-secret cleartext
1个回答
0
投票

您好,即使我正在寻找同样的问题,您也找到了解决方案吗 在 UI 中,输入密码时将显示 ***** 如果您有解决方案,请告诉我。

© www.soinside.com 2019 - 2024. All rights reserved.