Skip to content

Choose a tag to compare

@jasonforal jasonforal released this 28 Jan 20:51
· 9 commits to main since this release
8340f18

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-analyzer binary will be written here
    • The datadog-ci binary might be written here
  • git config --global --add safe.directory "$GITHUB_WORKSPACE" will be run
  • git config --unset extensions.worktreeConfig might be run
  • A temporary dir (mktemp -d) containing datadog-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-ci is used
  • GET 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

  • bash
  • git
  • curl (additionally, CA certificates)
  • node
  • npm
  • unzip

The same "Side Effects" from the section above apply.