Act: Secrets are case sensitive

Created on 11 May 2020  路  5Comments  路  Source: nektos/act

When running a workflow with act, the casing I specify with -s CASED_SECRET=abc123 is the only one available in my workflows.

For example:

steps:
  - uses: my/action@master
    with:
      not_working: ${{ secrets.cased_secret }}
      working: ${{ secrets.CASED_SECRET }}

In this workflow, not_working is an empty string whilst working returns abc123 as expected.

When running this on Actions, both not_working and working have the value abc123


Details

  • act version 0.2.8
  • MacOS 10.15.4
  • go version go1.14.2 darwin/amd64

Full command:

act -j output-debug -W ~/development/oss/action-test/.github/workflows pull_request -e ~/development/oss/action-test/event.json
areworkflow kinbug

All 5 comments

Issue is stale and will be closed in 7 days unless there is new activity

Sorry bot, this is still a thing that we should look at

Issue is stale and will be closed in 7 days unless there is new activity

Still a thing, github-actions[bot]

To be clear, you are saying Github looks at secret Keys as case insensitive, so netkos/act needs to do the same, but currently is looking at them as case sensitive. Is that correct?

Was this page helpful?
0 / 5 - 0 ratings