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

The set-output command is deprecated and upload action used is deprecated too #148

Open
piotrekkr opened this issue May 9, 2024 · 0 comments

Comments

@piotrekkr
Copy link

When running latest gitleaks action v2.3.4

Download action repository 'gitleaks/[email protected]' (SHA:e6dab246340401bf53eec993b8f05aebe80ac636)

I get those warnings:

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/

and

Deprecation notice: v1, v2, and v3 of the artifact actions
The following artifacts were uploaded using a version of actions/upload-artifact that is scheduled for deprecation: "gitleaks-results.sarif".
Please update your workflow to use v4 of the artifact actions.
Learn more: https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/

Those are workflow run logs:

10:09AM DBG using existing gitleaks config .gitleaks.toml from `(--source)/.gitleaks.toml`
10:09AM DBG extending config with default config
10:09AM DBG executing: /usr/bin/git -C . log -p -U0 --no-merges --first-parent 49999576669f8048ede46131a3c64d81cec8492a^..2aa658f149fc4e3e797b15b9c014f6f4823f7c1b
10:09AM INF 3 commits scanned.
10:09AM DBG Note: this number might be smaller than expected due to commits with no additions
10:09AM INF scan completed in 59.5ms
10:09AM INF no leaks found

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/
Starting artifact upload
For more detailed logs during the artifact upload process, enable step-debugging: https://docs.github.com/actions/monitoring-and-troubleshooting-workflows/enabling-debug-logging#enabling-step-debug-logging
Artifact name is valid!
Container for artifact "gitleaks-results.sarif" successfully created. Starting upload of file(s)
Total size of all the files uploaded is 191 bytes
File upload process has finished. Finalizing the artifact upload
Artifact has been finalized. All files have been successfully uploaded!

The raw size of all the files that were specified for upload is 270 bytes
The size of all the files that were uploaded is 191 bytes. This takes into account any gzip compression used to reduce the upload size, time and storage

Note: The size of downloaded zips can differ significantly from the reported size. For more information see: https://github.com/actions/upload-artifact#zipped-artifact-downloads 

✅ No leaks detected

I also get this upload action warnings:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant