Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/aws-auth/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ N/A
#### Usage
```yaml
- name: AWS Authentication
uses: dvsa/.github/.github/actions/aws-auth@v6
uses: dvsa/.github/.github/actions/aws-auth@v7
with:
aws_role: dvsa-infra-github
aws_region: eu-west-1
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/aws-cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ N/A
#### Usage
```yaml
- name: List S3 Buckets
uses: dvsa/.github/.github/actions/aws-cli@v6
uses: dvsa/.github/.github/actions/aws-cli@v7
with:
command: "s3 ls"
```
2 changes: 1 addition & 1 deletion .github/actions/aws-waf-access/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ N/A
#### Usage
```yaml
- name: Allow WAF Access
uses: dvsa/.github/.github/actions/aws-waf-access@v6
uses: dvsa/.github/.github/actions/aws-waf-access@v7
with:
ip_set_name: dev-mot-waf-ipset
rule_action: INSERT
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/commitlint/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
check-pr-title:
runs-on: ubuntu-latest
steps:
- uses: dvsa/.github/.github/actions/commitlint@v6
- uses: dvsa/.github/.github/actions/commitlint@v7
with:
input: ${{ github.event.pull_request.title }}
```
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/display-jest-test-summary/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Table of jest test results displayed on Github summary
#### Usage
```yaml
- name: Display Jest Test Summary
uses: dvsa/.github/.github/actions/display-jest-test-summary@v6
uses: dvsa/.github/.github/actions/display-jest-test-summary@v7
with:
test_report_path: 'test-report.html'
```
2 changes: 1 addition & 1 deletion .github/actions/gatling-job-summary/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ N/A
#### Usage
```yaml
- name: Generate Job Summary
uses: dvsa/.github/.github/actions/gatling-job-summary@v6
uses: dvsa/.github/.github/actions/gatling-job-summary@v7
with:
gatling_report_path: .target/gatling/
```
2 changes: 1 addition & 1 deletion .github/actions/java-config/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ N/A
#### Usage
```yaml
- name: Java Setup
uses: dvsa/.github/.github/actions/java-config@v6
uses: dvsa/.github/.github/actions/java-config@v7
with:
java-version: 17
```
4 changes: 2 additions & 2 deletions .github/actions/terraform-action/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ N/A
#### Usage
```yaml
- name: Terraform - db
uses: dvsa/.github/.github/actions/terraform-action@v6
uses: dvsa/.github/.github/actions/terraform-action@v7
working-directory: .
with:
action: plan
Expand All @@ -37,7 +37,7 @@ N/A
project: mot-project

- name: Terraform - app
uses: dvsa/.github/.github/actions/terraform-action@v6
uses: dvsa/.github/.github/actions/terraform-action@v7
working-directory: ./infrastructure
with:
action: plan
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/terraform-fmt/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ N/A
#### Usage
```yaml
- name: terraform fmt
uses: dvsa/.github/.github/actions/terraform-fmt@v6
uses: dvsa/.github/.github/actions/terraform-fmt@v7
```
4 changes: 2 additions & 2 deletions .github/actions/terraform-workspace/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ N/A
#### Usage
```yaml
- name: TF workspace
uses: dvsa/.github/.github/actions/terraform-workspace@v6
uses: dvsa/.github/.github/actions/terraform-workspace@v7
with:
terraform_workspace_name: ${{ inputs.terraform_workspace_name }}
terraform_version: 1.3.7

- name: TF workspace
uses: dvsa/.github/.github/actions/terraform-workspace@v6
uses: dvsa/.github/.github/actions/terraform-workspace@v7
with:
terraform_workspace_name: test01
```
2 changes: 1 addition & 1 deletion .github/actions/update-pr/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ pr-update:
needs: tf-plan
runs-on: ubuntu-latest
steps:
- uses: dvsa/.github/.github/actions/update-pr@v6
- uses: dvsa/.github/.github/actions/update-pr@v7
```
2 changes: 1 addition & 1 deletion .github/workflows/conventional-commits.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ jobs:
INPUT: ${{ inputs.title || github.event.pull_request.title }}
steps:
- name: Validate input
uses: dvsa/.github/.github/actions/commitlint@v6
uses: dvsa/.github/.github/actions/commitlint@v7
with:
input: ${{ env.INPUT }}
2 changes: 1 addition & 1 deletion .github/workflows/secrets-scan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ name: Secrets scan
# Invoke from a repo via:
# jobs:
# secrets:
# uses: dvsa/.github/.github/workflows/secrets-scan.yaml@v6
# uses: dvsa/.github/.github/workflows/secrets-scan.yaml@v7

on:
workflow_call:
Expand Down
42 changes: 21 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,19 @@ When referencing workflows from this repository, you can choose different versio

```yaml
# Recommended: Pin to major version (automatically receives patch and minor updates)
uses: dvsa/.github/.github/workflows/nodejs-test.yaml@v6
uses: dvsa/.github/.github/workflows/nodejs-test.yaml@v7

# Conservative: Pin to minor version (automatically receives patch updates only)
uses: dvsa/.github/.github/workflows/nodejs-test.yaml@v6.0
uses: dvsa/.github/.github/workflows/nodejs-test.yaml@v7.0

# Most conservative: Pin to exact version (no automatic updates)
uses: dvsa/.github/.github/workflows/nodejs-test.yaml@v6.0.0
uses: dvsa/.github/.github/workflows/nodejs-test.yaml@v7.0.0

# Not recommended: Use main branch (may contain breaking changes)
uses: dvsa/.github/.github/workflows/nodejs-test.yaml@main
```

**Recommendation:** For production workflows, pin to the major version (`@v6`) to automatically receive bug fixes and new features while avoiding breaking changes. For maximum stability during critical periods, use an exact version and update manually.
**Recommendation:** For production workflows, pin to the major version (`@v7`) to automatically receive bug fixes and new features while avoiding breaking changes. For maximum stability during critical periods, use an exact version and update manually.

### Version Bumping

Expand Down Expand Up @@ -260,13 +260,13 @@ The build and upload-to-s3 steps would look like the following:

```YAML
build:
uses: dvsa/.github/.github/workflows/nodejs-build.yaml@v6
uses: dvsa/.github/.github/workflows/nodejs-build.yaml@v7
with:
upload-artifact: true
build-command: npm run build:prod

upload-to-s3:
uses: dvsa/.github/.github/workflows/upload-to-s3.yaml@v6
uses: dvsa/.github/.github/workflows/upload-to-s3.yaml@v7
with:
environment: nonprod
short-commit: ${{ needs.build-names.outputs.short_sha }}
Expand Down Expand Up @@ -301,15 +301,15 @@ The build and upload-to-s3 steps would have the following inputs:

```YAML
build:
uses: dvsa/.github/.github/workflows/nodejs-build.yaml@v6
uses: dvsa/.github/.github/workflows/nodejs-build.yaml@v7
with:
upload-artifact: true
build-folder: build
build-folder-path: build/artifacts
build-command: npm run build:prod

upload-to-s3:
uses: dvsa/.github/.github/workflows/upload-to-s3.yaml@v6
uses: dvsa/.github/.github/workflows/upload-to-s3.yaml@v7
with:
environment: dev
short-commit: ${{ needs.build-names.outputs.short_sha }}
Expand Down Expand Up @@ -345,7 +345,7 @@ The upload-to-s3 action with a matrix strategy defined:

```YAML
upload-to-s3:
uses: dvsa/.github/.github/workflows/upload-to-s3.yaml@v6
uses: dvsa/.github/.github/workflows/upload-to-s3.yaml@v7
strategy:
matrix:
buildName: [
Expand Down Expand Up @@ -411,7 +411,7 @@ IDE integration matches those on the Snyk website.
jobs:
security:
if: github.event.pull_request.merged == true
uses: dvsa/.github/.github/workflows/java-security.yaml@v6
uses: dvsa/.github/.github/workflows/java-security.yaml@v7
with:
java_version: 11
snyk_project: smc-w53
Expand Down Expand Up @@ -538,7 +538,7 @@ Typically, this would run on push so the action result can be used to validate a
jobs:
security:
if: github.event.pull_request.merged == true
uses: dvsa/.github/.github/workflows/java-security.yaml@v6
uses: dvsa/.github/.github/workflows/java-security.yaml@v7
with:
java_version: 11
snyk_project: smc-w53
Expand Down Expand Up @@ -585,7 +585,7 @@ on:

jobs:
unit-test:
uses: dvsa/.github/.github/workflows/java-test.yaml@v6
uses: dvsa/.github/.github/workflows/java-test.yaml@v7
with:
config_file_contents: |
environment: development
Expand Down Expand Up @@ -615,18 +615,18 @@ on:

jobs:
security:
uses: dvsa/.github/.github/workflows/php-security.yml@v6
uses: dvsa/.github/.github/workflows/php-security.yml@v7
secrets:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
```
if using library version amend
```YAML
uses: dvsa/.github/.github/workflows/php-security.yml@v6
uses: dvsa/.github/.github/workflows/php-security.yml@v7
```
to

```YAML
uses: dvsa/.github/.github/workflows/php-library-security.yml@v6
uses: dvsa/.github/.github/workflows/php-library-security.yml@v7

```

Expand Down Expand Up @@ -654,16 +654,16 @@ on:

jobs:
static:
uses: dvsa/.github/.github/workflows/php-static.yml@v6
uses: dvsa/.github/.github/workflows/php-static.yml@v7
```
if using library version amend
```YAML
uses: dvsa/.github/.github/workflows/php-static.yml@v6
uses: dvsa/.github/.github/workflows/php-static.yml@v7
```
to

```YAML
uses: dvsa/.github/.github/workflows/php-library-static.yml@v6
uses: dvsa/.github/.github/workflows/php-library-static.yml@v7

```

Expand Down Expand Up @@ -692,18 +692,18 @@ on:

jobs:
static:
uses: dvsa/.github/.github/workflows/php-tests.yml@v6
uses: dvsa/.github/.github/workflows/php-tests.yml@v7
with:
php_versions: "[\"7.4\",\"8.0\"]"
```
if using library version amend
```YAML
uses: dvsa/.github/.github/workflows/php-tests.yml@v6
uses: dvsa/.github/.github/workflows/php-tests.yml@v7
```
to

```YAML
uses: dvsa/.github/.github/workflows/php-library-tests.yml@v6
uses: dvsa/.github/.github/workflows/php-library-tests.yml@v7

```

Expand Down
2 changes: 1 addition & 1 deletion workflow-templates/check-pr-title.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ permissions:

jobs:
check:
uses: dvsa/.github/.github/workflows/conventional-commits.yaml@v6
uses: dvsa/.github/.github/workflows/conventional-commits.yaml@v7
with:
title: ${{ github.event.pull_request.title }}
12 changes: 6 additions & 6 deletions workflow-templates/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ on:

jobs:
lint:
uses: dvsa/.github/.github/workflows/nodejs-lint.yaml@v6
uses: dvsa/.github/.github/workflows/nodejs-lint.yaml@v7

test:
uses: dvsa/.github/.github/workflows/nodejs-test.yaml@v6
uses: dvsa/.github/.github/workflows/nodejs-test.yaml@v7

security:
uses: dvsa/.github/.github/workflows/nodejs-security.yaml@v6
uses: dvsa/.github/.github/workflows/nodejs-security.yaml@v7
secrets:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}

Expand All @@ -35,7 +35,7 @@ jobs:
echo "NAME=${PRETTY_BRANCH_NAME}" >> $GITHUB_OUTPUT

build:
uses: dvsa/.github/.github/workflows/nodejs-build.yaml@v6
uses: dvsa/.github/.github/workflows/nodejs-build.yaml@v7
needs: [ build-names ]
with:
upload-artifact: ${{ github.ref_name == 'main' }}
Expand All @@ -44,7 +44,7 @@ jobs:

upload-to-s3:
if: ${{ github.ref_name == github.event.repository.default_branch }}
uses: dvsa/.github/.github/workflows/upload-to-s3.yaml@v6
uses: dvsa/.github/.github/workflows/upload-to-s3.yaml@v7
needs: [ lint, test, build, build-names ]
with:
environment: dev
Expand All @@ -61,7 +61,7 @@ jobs:

update-lambda-code:
if: ${{ github.ref_name == github.event.repository.default_branch }}
uses: dvsa/.github/.github/workflows/update-lambda-function.yaml@v6
uses: dvsa/.github/.github/workflows/update-lambda-function.yaml@v7
needs: [ build-names, build, upload-s3 ]
with:
environment: dev
Expand Down
2 changes: 1 addition & 1 deletion workflow-templates/npm-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

jobs:
publish:
uses: dvsa/.github/.github/workflows/nodejs-publish.yaml@v6
uses: dvsa/.github/.github/workflows/nodejs-publish.yaml@v7
with:
download-artifact: true
build-folder: package
Expand Down
2 changes: 1 addition & 1 deletion workflow-templates/php-library-security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

jobs:
security:
uses: dvsa/.github/.github/workflows/php-library-security.yml@v6
uses: dvsa/.github/.github/workflows/php-library-security.yml@v7
with:
php-versions: "[\"8.2\",\"8.3\",\"8.4\",\"8.5\"]"
secrets:
Expand Down
2 changes: 1 addition & 1 deletion workflow-templates/php-library-static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ on:

jobs:
static:
uses: dvsa/.github/.github/workflows/php-library-static.yml@v6
uses: dvsa/.github/.github/workflows/php-library-static.yml@v7
2 changes: 1 addition & 1 deletion workflow-templates/php-library-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ on:

jobs:
static:
uses: dvsa/.github/.github/workflows/php-library-tests.yml@v6
uses: dvsa/.github/.github/workflows/php-library-tests.yml@v7
with:
php-versions: "[\"8.2\",\"8.3\",\"8.4\",\"8.5\"]"
2 changes: 1 addition & 1 deletion workflow-templates/php-security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ on:

jobs:
security:
uses: dvsa/.github/.github/workflows/php-security.yml@v6
uses: dvsa/.github/.github/workflows/php-security.yml@v7
secrets:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
2 changes: 1 addition & 1 deletion workflow-templates/php-static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ on:

jobs:
static:
uses: dvsa/.github/.github/workflows/php-static.yml@v6
uses: dvsa/.github/.github/workflows/php-static.yml@v7
2 changes: 1 addition & 1 deletion workflow-templates/php-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ on:

jobs:
tests:
uses: dvsa/.github/.github/workflows/php-tests.yml@v6
uses: dvsa/.github/.github/workflows/php-tests.yml@v7
with:
php-versions: "[\"8.2\",\"8.3\",\"8.4\",\"8.5\"]"
Loading
Loading