This is a major release that converts the action from a container action to a composite action.
In practice, this will reduce the time the action takes to initialize from over 1 minute to under 10 seconds.
Upgrading from v2
TL;DR unless you are self-hosting runners, upgrading from v2 will work without issue.
GitHub-hosted Runners
If you're using Github's runners, you can upgrade without issue.
Side Effects
Note that with the move away from containerization, there are some net-new side effects to using the action that persist to following steps. These are not expected to cause behavior regressions but are listed below for transparency:
$HOME/.local/bin/will be created and added to$GITHUB_PATH- The
datadog-static-analyzerbinary will be written here - The
datadog-cibinary might be written here
- The
git config --global --add safe.directory "$GITHUB_WORKSPACE"will be rungit config --unset extensions.worktreeConfigmight be run- A temporary dir (
mktemp -d) containingdatadog-ci(semver^4) might be written to$GITHUB_PATH
Self-hosted Runners
If you are using self-hosted runners you might need additional configuration, depending on your setup (firewalls, etc).
Net-new network calls
npm view @datadog/datadog-ciis usedGET https://github.com/DataDog/datadog-static-analyzer/releases/latest/download/*GET https://github.com/DataDog/datadog-ci/releases/download/*/*
Net-new required binaries in $PATH
bashgitcurl(additionally, CA certificates)nodenpmunzip
The same "Side Effects" from the section above apply.