Git Product home page Git Product logo

Comments (6)

joseph-flinn avatar joseph-flinn commented on June 27, 2024 2

I made a quick change locally that has been tested and solves this issue

Change overview:
image

Gist changes (for copy+paste): https://gist.github.com/joseph-flinn/c940392463964b6139df4325b471c8ad

Unfortunately, I don't have the bandwidth to follow through and really dig into how this action is setup with support for the AzureStack to put in a PR. During my testing, master was breaking and I couldn't test my changes directly against master and I couldn't find documentation on how to run this Action local to a runner (if there are steps needed to compile or something). I personally made changes to a branch taken off of the current stable v1.1.

from get-keyvault-secrets.

KKghub avatar KKghub commented on June 27, 2024 2

Another workaround is that we can use square brackets to access the dynamic secrets
Assuming x holds the secret key name ex. store-id then we can use ${{ env.x }} in the get-keyvault-secrets action and we can access the value by ${{ steps.azure-secrets.outputs[env.x] }}

https://stackoverflow.com/questions/69299781/using-a-variable-inside-context-expression-in-github-actions

Hope this helps someone!

from get-keyvault-secrets.

joseph-flinn avatar joseph-flinn commented on June 27, 2024

This would also be helpful in (or enable) cases getting different secrets in a matrix job

from get-keyvault-secrets.

deep-mm avatar deep-mm commented on June 27, 2024

I was able to get dynamic name secrets by this:
image

One thing that concerns me is, how do I access it in the output
${{ steps.GitHubPAT.outputs.$secretName }}

How do I have the $secretName as dynamic?

from get-keyvault-secrets.

github-actions avatar github-actions commented on June 27, 2024

This issue is idle because it has been open for 14 days with no activity.

from get-keyvault-secrets.

github-actions avatar github-actions commented on June 27, 2024

This issue is idle because it has been open for 14 days with no activity.

from get-keyvault-secrets.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.