Skip to content

Conversation

@robertbrignull
Copy link
Contributor

This PR aims to remove a few elements from shared-environment.ts. Most of this is pretty easy because the variable is only used from one place, or the data is readily available in the config already.

This doesn't remove ODASA_TRACER_CONFIGURATION or CODEQL_WORKFLOW_STARTED_AT because those are unfortunately going to be slightly more tricky.

I think the only bit that needs explaining is the removal of should_abort. I claim this is safe to do because it's functionality of checking that the init action has already run is covered by the call to getConfig in the autobuild and analyze actions. In the init and upload-sarif actions, all it was doing was validating that the github ref env var was populated, which doesn't seem worth it to keep the function around.

Merge / deployment checklist

  • Confirm this change is backwards compatible with existing workflows.
  • Confirm the readme has been updated if necessary.

@robertbrignull
Copy link
Contributor Author

#137 also introduced a list of the known languages to the config-utils file, and this PR introduces that list to the codeql file. I'd like to keep the data in one place, and based on the dependency direction I think that place has to be the codeql file, so I'll move the existing code to there.

@robertbrignull
Copy link
Contributor Author

#137 also introduced a list of the known languages to the config-utils file, and this PR introduces that list to the codeql file. I'd like to keep the data in one place, and based on the dependency direction I think that place has to be the codeql file, so I'll move the existing code to there.

After looking at this, it's going to involve a fair bit or refactoring and ideally I'd like to even introduce a new languages.ts file. So I propose leaving this PR as it is and doing that change separately.

@robertbrignull robertbrignull mentioned this pull request Aug 10, 2020
2 tasks
Copy link
Contributor

@sampart sampart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM; thanks!

@robertbrignull robertbrignull merged commit d5693a7 into main Aug 10, 2020
@robertbrignull robertbrignull deleted the remove_some_shared_env branch August 10, 2020 14:46
@github-actions github-actions bot mentioned this pull request Aug 17, 2020
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 this pull request may close these issues.

3 participants