Using env together with "Untyped wrapper"-approach #412
Answered
by
uweschaefer
uweschaefer
asked this question in
Q&A
-
Hi, i am try to follow the "Untyped wrapper" approach mentioned here https://krzema12.github.io/github-actions-kotlin-dsl/user-guide/using-actions/ in order to use an - yet unsupported - action. here is what i am trying to produce: - name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} Any leads, that i don't currently see? Thanks. |
Beta Was this translation helpful? Give feedback.
Answered by
uweschaefer
Aug 17, 2022
Replies: 1 comment 1 reply
-
[Solved] Ok, now i found it - stupid me. example: uses(
action = customAction,
name = "Sonar analysis",
env = linkedMapOf(
"GITHUB_TOKEN" to expr { secrets.GITHUB_TOKEN }, // typesafe
"SONAR_TOKEN" to expr { "secrets.SONAR_TOKEN" } // just as a string
)
) with custom action being val customAction = CustomAction(
actionOwner = "SonarSource",
actionName = "sonarcloud-github-action",
actionVersion = "master",
inputs = linkedMapOf()
) to produce
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
uweschaefer
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
[Solved]
Ok, now i found it - stupid me.
example:
with custom action being
to produce