Describe the bug
Github actions workflow with inputs cannot be masked using add-mask.
To Reproduce
- 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 }}"
- Run workflow entering secret value "password" as input
- 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}
Describe the bug
Github actions workflow with inputs cannot be masked using add-mask.
To Reproduce
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}