You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This workflow can be called to automatically approve and merge Dependabot PRs as part of the pull request workflow.
74
22
@@ -92,40 +40,6 @@ jobs:
92
40
AUTOMERGE_APP_ID: ${{ secrets.AUTOMERGE_APP_ID }}
93
41
AUTOMERGE_PEM: ${{ secrets.AUTOMERGE_PEM }}
94
42
```
95
-
## Sync copilot instructions
96
-
This workflow syncs Copilot instructions from this repo into another repo and opens a PR with the changes.
97
-
It uses the environment secrets CREATE_PULL_REQUEST_APP_ID and CREATE_PULL_REQUEST_PEM that are defined in the create_pull_request environment in each repo
98
-
99
-
#### Inputs
100
-
101
-
- `common_workflows_ref`: Branch in common workflows repo to sync from. Default: `main`
102
-
- `calling_repo_base_branch`: The base branch in the calling repository. Default: `main`.
This workflow checks that all pull requests have a title that matches the required format, and comments on the PR with a link to the relevant ticket if a ticket reference is found.
To use this, you must have the following Makefile targets defined
186
-
- install
187
-
- lint
188
-
- test
189
-
- install-node (only for cdk projects)
190
-
- compile (only for cdk projects)
191
-
- cdk-synth (only for cdk projects)
192
-
- docker-build (only if run_docker_scan is set to true)
193
-
194
-
#### Inputs
195
-
196
-
- `install_java`: Whether to install Java or not
197
-
- `run_sonar`: Whether to run Sonar checks or not.
198
-
- `asdfVersion`: Override the version of asdf to install.
199
-
- `reinstall_poetry`: If you are using this from a primarily Python based project, you should set this to true to force a poetry reinstallation after Python is installed
200
-
- `run_docker_scan`: whether to run a scan of Docker images
201
-
- `docker_images`: csv list of Docker images to scan. These must match images produced by make docker-build
202
-
203
-
#### Secret Inputs
204
-
- `SONAR_TOKEN`: Token used to authenticate to Sonar
205
-
206
-
#### Outputs
207
-
208
-
None
209
-
210
-
#### Example
211
-
212
-
To use this workflow in your repository, call it from another workflow file:
This workflow runs common quality checks using a prebuilt devcontainer (https://github.com/NHSDigital/eps-devcontainers).
232
99
To use this, you must have overridden any common makefile targets described in https://github.com/NHSDigital/eps-devcontainers?tab=readme-ov-file#common-makefile-targets
@@ -268,46 +135,6 @@ jobs:
268
135
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
269
136
```
270
137
271
-
## Update Dev Container Version
272
-
This workflow updates `.devcontainer/devcontainer.json` with the latest published `v*` version for your configured devcontainer image from GHCR, then opens (or updates) a pull request with that change.
273
-
274
-
#### Requirements
275
-
276
-
- `.devcontainer/devcontainer.json`must include `build.args.IMAGE_NAME` and `build.args.IMAGE_VERSION`.
277
-
- `CREATE_PULL_REQUEST_APP_ID`and `CREATE_PULL_REQUEST_PEM` secrets must be configured so the workflow can create a GitHub App token for PR creation.
278
-
279
-
#### Inputs
280
-
281
-
- `base_branch`: Target branch for the pull request. Default: `main`.
282
-
283
-
#### Secret Inputs
284
-
285
-
- `CREATE_PULL_REQUEST_APP_ID`: GitHub App ID used to generate an installation token.
286
-
- `CREATE_PULL_REQUEST_PEM`: GitHub App private key used to generate an installation token.
287
-
288
-
#### Outputs
289
-
290
-
None
291
-
292
-
#### Example
293
-
294
-
To use this workflow in your repository, call it from another workflow file:
This workflow uses the semantic-release npm package to generate a new version tag, changelog, and GitHub release for a repo.
@@ -400,44 +227,6 @@ jobs:
400
227
```
401
228
402
229
403
-
## Secret Scanning Docker
404
-
405
-
The secret scanning also has a Dockerfile, which can be run against a repo in order to scan it manually (or as part of pre-commit hooks). This can be done like so:
docker run -v /path/to/repo:/src git-secrets --scan-history .
409
-
```
410
-
For usage of the script, see the [source repo](https://github.com/NHSDigital/software-engineering-quality-framework/blob/main/tools/nhsd-git-secrets/git-secrets). Generally, you will either need `--scan -r .` or `--scan-history .`. The arguments default to `--scan -r .`, i.e. scanning the current state of the code.
411
-
412
-
In order to enable the pre-commit hook for secret scanning (to prevent developers from committing secrets in the first place), add the following to the `.devcontainer/devcontainer.json` file:
0 commit comments