Closed webknjaz closed 2 years ago
We currently use environments for integration testing (on pull request).
We currently use environments for integration testing (on pull request).
Now that I'm looking at this more closely, a couple of the downstream jobs missed that directive, creating a PR shortly.
The non-pull-request integration tests only run on main
, schedule
, and workflow_dispatch
. How would your suggestion benefit these?
Closing due to inactivity.
Hi @mamercad, I was looking at the current GHA setup and noticed an opportunity to tighten security a bit. You can scope the secrets better by having environments set up. This way, jobs that don't have this environment set (or use other envs), will be resistant to the attempts to scrape the secrets.
Here's how to do this.
environment: integration-tests
(for example) to the integration test jobsintegration-tests
(it may be auto-created by the time you get there if you run a job that points to this name)integration-tests