From a1068549a651b373226c15b0a867d0b9bfe8909c Mon Sep 17 00:00:00 2001 From: Thomas Vitale Date: Sun, 20 Oct 2024 17:23:18 +0200 Subject: [PATCH] Improve GitHub Actions Workflow --- .github/dependabot.yml | 13 +++++++++++++ .github/workflows/commit-stage.yml | 7 +++++-- 2 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..4bb1068 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,13 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: daily + time: "00:30" + timezone: Europe/Copenhagen + open-pull-requests-limit: 10 + labels: + - "dependencies" + commit-message: + prefix: "deps:" diff --git a/.github/workflows/commit-stage.yml b/.github/workflows/commit-stage.yml index 006c4ac..f966f6b 100644 --- a/.github/workflows/commit-stage.yml +++ b/.github/workflows/commit-stage.yml @@ -7,6 +7,9 @@ on: branches: - main +permissions: + contents: read + jobs: build: name: Build @@ -15,10 +18,10 @@ jobs: contents: read steps: - name: Check out source code - uses: actions/checkout@v4 + uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 - name: Set up Java - uses: actions/setup-java@v4 + uses: actions/setup-java@b36c23c0d998641eff861008f374ee103c25ac73 # v4.4.0 with: java-version: 23 distribution: temurin