runner icon indicating copy to clipboard operation
runner copied to clipboard

add-mask doesn't work with workflow_dispatch inputs

Open rkuhlercadent opened this issue 5 years ago • 17 comments

Describe the bug Github actions workflow with inputs cannot be masked using add-mask.

To Reproduce

  1. Create workflow
name: add-mask-test
on: 
  workflow_dispatch:
    inputs:
      secret:
        description: 'secret value'
        required: true
jobs:
  my-job:
    runs-on: ubuntu-latest
    steps:
      - name: add-mask test
        run: |
          echo "::add-mask::${{ github.event.inputs.secret }}"
  1. Run workflow entering secret value "password" as input
  2. Look at workflow log and see value "password" appears twice without masking

Expected behavior The value in add-mask does not appear at all in the workflow log output

Runner Version and Platform

Current runner version: '2.272.0' Operating System Ubuntu 18.04.4 LTS

What's not working?

The value in add-mask appears twice without masking

Job Log Output

add-mask test shell: /bin/bash -e {0} Run echo "::add-mask::password" echo "::add-mask::password" shell: /bin/bash -e {0}

rkuhlercadent avatar Aug 05 '20 04:08 rkuhlercadent