actions / actions/runner

ISO 8601 input parameter values are reformatted

Open
#675 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug Runner Bug
Dominant language
C#
Stars
6.3k
Forks
1.4k
Avg merge
1d 16h
Merged PRs (30d)
24

Description

Describe the bug
Input parameter values that follow ISO 8601 are reformatted and core.getInput() returns a string that is different from the one that was passed to the action step. The reformatted input parameter is also visible in the logs of the action step.

To Reproduce
The input parameter below will produce the 08/21/2020 00:00:00 string in the logs and when accessed with core.getInput('date'). The job runs on ubuntu-latest.

        with:
          date: '2020-08-21T00:00:00Z'

Expected behavior
The value should not be reformatted.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue from the action step's with input using date: '2020-08-21T00:00:00Z' on ubuntu-latest, then inspect the path that supplies the value to core.getInput('date') and the action-step logs. Done means the ISO 8601 string remains unchanged in both places; the payload names no source file or test.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, github-actions
Domain
ci-cd
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.