diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..bb39342 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,13 @@ +# Please see the documentation for all configuration options: +# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates + +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "monthly" + - package-ecosystem: "terraform" + directory: "/" + schedule: + interval: "monthly" diff --git a/.github/workflows/dependencies-project.yml b/.github/workflows/dependencies-project.yml new file mode 100644 index 0000000..b3c421c --- /dev/null +++ b/.github/workflows/dependencies-project.yml @@ -0,0 +1,11 @@ +name: Add dependencies to Cloud Platform project + +on: + workflow_dispatch: + schedule: + - cron: '0 0 * * *' + +jobs: + add-dependabot-to-project: + uses: ministryofjustice/cloud-platform-github-workflows/.github/workflows/dependencies-project.yml@main + secrets: inherit diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index a489e42..31b40bd 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -6,12 +6,12 @@ jobs: docs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: ref: ${{ github.event.pull_request.head.ref }} - name: Render terraform docs and push changes back to PR - uses: terraform-docs/gh-actions@v1.0.0 + uses: terraform-docs/gh-actions@v1.2.0 with: working-dir: . output-file: README.md diff --git a/.github/workflows/push-terraform-module-version.yaml b/.github/workflows/push-terraform-module-version.yaml index ae436eb..478fe24 100644 --- a/.github/workflows/push-terraform-module-version.yaml +++ b/.github/workflows/push-terraform-module-version.yaml @@ -7,7 +7,7 @@ jobs: push-terraform-module-version: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: ministryofjustice/cloud-platform-environments/cmd/push-terraform-module-version@main env: API_URL: ${{ vars.TERRAFORM_MODULE_VERSIONS_API_URL }} diff --git a/.github/workflows/unit.yml b/.github/workflows/unit.yml index a46d5a7..75265d7 100644 --- a/.github/workflows/unit.yml +++ b/.github/workflows/unit.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Setup Terraform uses: hashicorp/setup-terraform@v1 with: