-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Labels
Runner FeatureFeature scope to the runnerFeature scope to the runnerenhancementNew feature or requestNew feature or request
Description
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}
radeva, scordio, TomaszKlosinski, unclenorton, ikrauchanka and 30 more
Metadata
Metadata
Assignees
Labels
Runner FeatureFeature scope to the runnerFeature scope to the runnerenhancementNew feature or requestNew feature or request