diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 7ac65bb..e1cdf95 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -4,8 +4,8 @@ updates: directory: "/" schedule: interval: "daily" - time: "08:00" - timezone: "Europe/Paris" + cooldown: + default-days: 2 labels: - "kind/dependencies" - "bot" diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a279557..03de45f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -4,7 +4,6 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true -# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions permissions: contents: read @@ -14,13 +13,9 @@ on: - 'master' tags: - '*' - paths-ignore: - - '**.md' pull_request: branches: - 'master' - paths-ignore: - - '**.md' env: LATEST_DOCKERFILE: Dockerfile-32 @@ -31,10 +26,8 @@ jobs: build: runs-on: ubuntu-latest permissions: - # same as global permissions - contents: read - # required to push to GHCR - packages: write + contents: read # same as global permissions + packages: write # required to push to GHCR steps: - name: Prepare @@ -49,7 +42,7 @@ jobs: - name: Docker meta id: meta - uses: docker/metadata-action@v6 + uses: docker/metadata-action@030e881283bb7a6894de51c315a6bfe6a94e05cf # v6.0.0 with: images: | ${{ env.DOCKERHUB_SLUG }} @@ -66,28 +59,28 @@ jobs: org.opencontainers.image.vendor=CrazyMax - name: Set up QEMU - uses: docker/setup-qemu-action@v4 + uses: docker/setup-qemu-action@ce360397dd3f832beb865e1373c09c0e9f86d70a # v4.0.0 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v4 + uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4.0.0 - name: Login to DockerHub if: github.event_name != 'pull_request' - uses: docker/login-action@v4 + uses: docker/login-action@b45d80f862d83dbcd57f89517bcf500b2ab88fb2 # v4.0.0 with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} - name: Login to GHCR if: github.event_name != 'pull_request' - uses: docker/login-action@v4 + uses: docker/login-action@b45d80f862d83dbcd57f89517bcf500b2ab88fb2 # v4.0.0 with: registry: ghcr.io username: ${{ github.repository_owner }} password: ${{ secrets.GITHUB_TOKEN }} - name: Build - uses: docker/bake-action@v7 + uses: docker/bake-action@82490499d2e5613fcead7e128237ef0b0ea210f7 # v7.0.0 with: files: | ./docker-bake.hcl diff --git a/.github/workflows/labels.yml b/.github/workflows/labels.yml index 22087b6..c45663d 100644 --- a/.github/workflows/labels.yml +++ b/.github/workflows/labels.yml @@ -4,7 +4,6 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true -# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions permissions: contents: read @@ -24,16 +23,14 @@ jobs: labeler: runs-on: ubuntu-latest permissions: - # same as global permissions - contents: read - # required to update labels - issues: write + contents: read # same as global permissions + issues: write # required to update labels steps: - name: Checkout - uses: actions/checkout@v6 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Run Labeler - uses: crazy-max/ghaction-github-labeler@v6 + uses: crazy-max/ghaction-github-labeler@548a7c3603594ec17c819e1239f281a3b801ab4d # v6.0.0 with: dry-run: ${{ github.event_name == 'pull_request' }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b096999..5feae7b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -4,7 +4,6 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true -# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions permissions: contents: read @@ -12,13 +11,9 @@ on: push: branches: - 'master' - paths-ignore: - - '**.md' pull_request: branches: - 'master' - paths-ignore: - - '**.md' env: BUILD_TAG: nextcloud:test @@ -41,10 +36,10 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v6 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Build - uses: docker/bake-action@v7 + uses: docker/bake-action@82490499d2e5613fcead7e128237ef0b0ea210f7 # v7.0.0 with: source: . targets: image-local @@ -61,7 +56,7 @@ jobs: NEXTCLOUD_CONTAINER: ${{ env.CONTAINER_NAME }} - name: Check container logs - uses: crazy-max/.github/.github/actions/container-logs-check@main + uses: crazy-max/.github/.github/actions/container-logs-check@bbd31df64ee0f097a02f12495f541f9236f18c46 # v1.2.0 with: container_name: ${{ env.CONTAINER_NAME }} log_check: "ready to handle connections" diff --git a/.github/workflows/zizmor.yml b/.github/workflows/zizmor.yml new file mode 100644 index 0000000..b0afc8c --- /dev/null +++ b/.github/workflows/zizmor.yml @@ -0,0 +1,26 @@ +name: zizmor + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +permissions: + contents: read + +on: + workflow_dispatch: + push: + branches: + - 'master' + pull_request: + +jobs: + run: + uses: crazy-max/.github/.github/workflows/zizmor.yml@bbd31df64ee0f097a02f12495f541f9236f18c46 # v1.2.0 + permissions: + contents: read + security-events: write + with: + min-severity: medium + min-confidence: medium + persona: pedantic diff --git a/.github/zizmor.yml b/.github/zizmor.yml new file mode 100644 index 0000000..6aee3c5 --- /dev/null +++ b/.github/zizmor.yml @@ -0,0 +1,4 @@ +# https://docs.zizmor.sh/configuration/ +rules: + secrets-outside-env: + disable: true