Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] set-output workflow command deprecated #384

Closed
jasonhancock opened this issue Oct 21, 2022 · 1 comment
Closed

[BUG] set-output workflow command deprecated #384

jasonhancock opened this issue Oct 21, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@jasonhancock
Copy link

jasonhancock commented Oct 21, 2022

Describe the bug
If using outputs, you get a warning message as the set-output workflow command has been deprecated in favor of using an environment file:

Warning: The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/

To Reproduce

    - name: vault secrets
      id: secrets
      uses: hashicorp/vault-action@v2.4.2
      with:
        exportEnv: false
        url: https://vault.example.com
        method: approle
        namespace: your-vault-namespace
        roleId: your-vault-approle-id
        secretId: your-vault-approle-secret
        secrets: |
          path/to/a/secret data | your_output_name ;

Expected behavior
Output set via the $GITHUB_OUTPUT environment file instead of the "set-output" workflow command.

@jasonhancock jasonhancock added the bug Something isn't working label Oct 21, 2022
@tvoran
Copy link
Member

tvoran commented Oct 25, 2022

Thanks, this should be addressed by #371 and will be included in the next release of this action. Hopefully soon!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants