[GH-ISSUE #396] What is the expected format of the --secret-file ? #277

Closed
opened 2026-03-01 21:41:59 +03:00 by kerem · 3 comments
Owner

Originally created by @Roms1383 on GitHub (Oct 18, 2020).
Original GitHub issue: https://github.com/nektos/act/issues/396

It's a bit of a naive question but I wonder if the expected format of the file provided to --secret-file is :

  • classic env like :
    SOME_VAR="SOME:SECRET"
    SOME_OTHER_VAR=ANOTHER_SECRET
    
  • JSON format :
    {
      "SOME_VAR": "SOME:SECRET",
      "SOME_OTHER_VAR": "ANOTHER_SECRET"
    }
    
Originally created by @Roms1383 on GitHub (Oct 18, 2020). Original GitHub issue: https://github.com/nektos/act/issues/396 It's a bit of a naive question but I wonder if the expected format of the file provided to `--secret-file` is : * classic env like : ```.env SOME_VAR="SOME:SECRET" SOME_OTHER_VAR=ANOTHER_SECRET ``` * JSON format : ```json { "SOME_VAR": "SOME:SECRET", "SOME_OTHER_VAR": "ANOTHER_SECRET" } ````
kerem closed this issue 2026-03-01 21:42:00 +03:00
Author
Owner

@cplee commented on GitHub (Oct 19, 2020):

@Roms1383 - the file is expected to be like a "classic env" file. Internally it uses godotenv: https://pkg.go.dev/github.com/joho/godotenv

<!-- gh-comment-id:712465691 --> @cplee commented on GitHub (Oct 19, 2020): @Roms1383 - the file is expected to be like a "classic env" file. Internally it uses `godotenv`: https://pkg.go.dev/github.com/joho/godotenv
Author
Owner

@Roms1383 commented on GitHub (Oct 20, 2020):

Thanks!

<!-- gh-comment-id:712544997 --> @Roms1383 commented on GitHub (Oct 20, 2020): Thanks!
Author
Owner

@alambike commented on GitHub (Jan 14, 2021):

Maybe an example in README would help to clarify this.

<!-- gh-comment-id:760379815 --> @alambike commented on GitHub (Jan 14, 2021): Maybe an example in README would help to clarify this.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#277
No description provided.