From 31acbb463395ef5cd767d251bfe80111269f635b Mon Sep 17 00:00:00 2001 From: 13xforever Date: Wed, 13 Nov 2024 15:17:38 +0500 Subject: [PATCH] update action verisons in github actions files --- .github/workflows/codeql-analysis.yml | 6 +++--- .github/workflows/dotnet.yml | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index c1c0c703..87d632e8 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -37,7 +37,7 @@ jobs: 9.0.x - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: # We must fetch at least the immediate parents so that if this is # a pull request then we can checkout the head. @@ -50,7 +50,7 @@ jobs: # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@v1 + uses: github/codeql-action/init@v3 with: languages: ${{ matrix.language }} # If you wish to specify custom queries, you can do so here or in a config file. @@ -78,4 +78,4 @@ jobs: # make release - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v1 + uses: github/codeql-action/analyze@v3 diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 0c11ec4e..a3747cb5 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest name: "Run Tests" steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: update dotnet core sdk uses: actions/setup-dotnet@v4 with: @@ -33,7 +33,7 @@ jobs: runs-on: ubuntu-latest name: "Build Release" steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: update dotnet core sdk uses: actions/setup-dotnet@v4 with: @@ -66,7 +66,7 @@ jobs: name: "Build Docker image" if: (github.ref == 'refs/heads/master') && (needs.ConfigTest.outputs.docker-username == 'true') steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - name: "clean build artifacts" @@ -86,9 +86,9 @@ jobs: - name: dotnet build Release run: dotnet build --no-restore --configuration Release - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 + uses: docker/setup-buildx-action@v3 - name: Login to DockerHub - uses: docker/login-action@v1 + uses: docker/login-action@v3 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} @@ -97,7 +97,7 @@ jobs: NUM: ${{ github.run_number }} run: echo "GITHUB_RUN_NUMBER_WITH_OFFSET=$(($NUM+1050))" >> $GITHUB_ENV - name: Build and push - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v6 with: context: . push: 'true'