diff --git a/.github/workflows/bats-hub.yml b/.github/workflows/bats-hub.yml index b24f2db5b..e6d9ae86a 100644 --- a/.github/workflows/bats-hub.yml +++ b/.github/workflows/bats-hub.yml @@ -55,7 +55,7 @@ jobs: run: ./tests/bin/collect-hub-coverage >> $GITHUB_ENV - name: "Create Parsers badge" - uses: schneegans/dynamic-badges-action@v1.1.0 + uses: schneegans/dynamic-badges-action@v1.6.0 if: ${{ github.ref == 'refs/heads/master' && github.repository_owner == 'crowdsecurity' }} with: auth: ${{ secrets.GIST_BADGES_SECRET }} @@ -66,7 +66,7 @@ jobs: color: ${{ env.SCENARIO_BADGE_COLOR }} - name: "Create Scenarios badge" - uses: schneegans/dynamic-badges-action@v1.1.0 + uses: schneegans/dynamic-badges-action@v1.6.0 if: ${{ github.ref == 'refs/heads/master' && github.repository_owner == 'crowdsecurity' }} with: auth: ${{ secrets.GIST_BADGES_SECRET }} diff --git a/.github/workflows/ci-windows-build-msi.yml b/.github/workflows/ci-windows-build-msi.yml index 13119da1e..a24e12ea7 100644 --- a/.github/workflows/ci-windows-build-msi.yml +++ b/.github/workflows/ci-windows-build-msi.yml @@ -37,7 +37,7 @@ jobs: - name: Build run: make windows_installer - name: Upload MSI - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: path: crowdsec*msi name: crowdsec.msi diff --git a/.github/workflows/go-tests.yml b/.github/workflows/go-tests.yml index 09f076afa..ca134af54 100644 --- a/.github/workflows/go-tests.yml +++ b/.github/workflows/go-tests.yml @@ -126,7 +126,7 @@ jobs: submodules: false - name: Cache Go modules - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: | ~/go/pkg/mod diff --git a/.github/workflows/publish_docker-image_on_master.yml b/.github/workflows/publish_docker-image_on_master.yml index aeebdca29..b09265b8e 100644 --- a/.github/workflows/publish_docker-image_on_master.yml +++ b/.github/workflows/publish_docker-image_on_master.yml @@ -23,6 +23,8 @@ jobs: steps: - name: Check out the repo uses: actions/checkout@v3 + with: + fetch-depth: 0 - name: Prepare id: prep run: | diff --git a/.github/workflows/release_publish_docker-image-debian.yml b/.github/workflows/release_publish_docker-image-debian.yml index 2d4a74d06..90db69880 100644 --- a/.github/workflows/release_publish_docker-image-debian.yml +++ b/.github/workflows/release_publish_docker-image-debian.yml @@ -12,11 +12,11 @@ jobs: name: Push Docker debian image to Docker Hub runs-on: ubuntu-latest steps: - - - name: Check out the repo + - name: Check out the repo uses: actions/checkout@v3 - - - name: Prepare + with: + fetch-depth: 0 + - name: Prepare id: prep run: | DOCKER_IMAGE=crowdsecurity/crowdsec @@ -32,24 +32,20 @@ jobs: if [[ ${{ github.event.action }} == released ]]; then TAGS=$TAGS,${DOCKER_IMAGE}:latest-debian fi - echo ::set-output name=version::${VERSION} - echo ::set-output name=tags::${TAGS} - echo ::set-output name=created::$(date -u +'%Y-%m-%dT%H:%M:%SZ') - - - name: Set up QEMU + echo "version=${VERSION}" >> $GITHUB_OUTPUT + echo "tags=${TAGS}" >> $GITHUB_OUTPUT + echo "created=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> $GITHUB_OUTPUT + - name: Set up QEMU uses: docker/setup-qemu-action@v2 - - - name: Set up Docker Buildx + - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 - - - name: Login to DockerHub + - name: Login to DockerHub uses: docker/login-action@v2 with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} - - - name: Build and push - uses: docker/build-push-action@v3 + - name: Build and push + uses: docker/build-push-action@v4 with: context: . file: ./Dockerfile.debian diff --git a/.github/workflows/release_publish_docker-image.yml b/.github/workflows/release_publish_docker-image.yml index 3a90fea1b..029c57e69 100644 --- a/.github/workflows/release_publish_docker-image.yml +++ b/.github/workflows/release_publish_docker-image.yml @@ -13,6 +13,8 @@ jobs: steps: - name: Check out the repo uses: actions/checkout@v3 + with: + fetch-depth: 0 - name: Prepare id: prep run: | @@ -32,10 +34,10 @@ jobs: TAGS=$TAGS,${DOCKER_IMAGE}:latest,${GHCR_IMAGE}:latest TAGS_SLIM=$TAGS_SLIM,${DOCKER_IMAGE}:slim fi - echo ::set-output name=version::${VERSION} - echo ::set-output name=tags::${TAGS} - echo ::set-output name=tags_slim::${TAGS_SLIM} - echo ::set-output name=created::$(date -u +'%Y-%m-%dT%H:%M:%SZ') + echo "version=${VERSION}" >> $GITHUB_OUTPUT + echo "tags=${TAGS}" >> $GITHUB_OUTPUT + echo "tags_slim=${TAGS_SLIM}" >> $GITHUB_OUTPUT + echo "created=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> $GITHUB_OUTPUT - name: Set up QEMU uses: docker/setup-qemu-action@v2 - name: Set up Docker Buildx @@ -47,14 +49,14 @@ jobs: password: ${{ secrets.DOCKER_PASSWORD }} - name: Login to GitHub Container Registry - uses: docker/login-action@v1.12.0 + uses: docker/login-action@v2 with: registry: ghcr.io username: ${{ github.repository_owner }} password: ${{ secrets.GITHUB_TOKEN }} - name: Build and push slim image - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v4 with: context: . file: ./Dockerfile @@ -68,7 +70,7 @@ jobs: org.opencontainers.image.revision=${{ github.sha }} - name: Build and push full image - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v4 with: context: . file: ./Dockerfile