diff --git a/.github/workflows/backend_lint_and_test.yml b/.github/workflows/backend_lint_and_test.yml index ca7a7d42a..53d2209b9 100644 --- a/.github/workflows/backend_lint_and_test.yml +++ b/.github/workflows/backend_lint_and_test.yml @@ -17,7 +17,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up .NET uses: actions/setup-dotnet@v4 @@ -30,7 +30,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up .NET uses: actions/setup-dotnet@v4 @@ -46,7 +46,7 @@ jobs: check_formatting: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Setup .NET Core uses: actions/setup-dotnet@v4 diff --git a/.github/workflows/frontend_lint_and_test.yml b/.github/workflows/frontend_lint_and_test.yml index 2990aff6b..97abc1379 100644 --- a/.github/workflows/frontend_lint_and_test.yml +++ b/.github/workflows/frontend_lint_and_test.yml @@ -21,9 +21,9 @@ jobs: # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v2 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} cache: "npm" @@ -48,7 +48,7 @@ jobs: working-directory: ./frontend steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Run Prettier run: npm run prettier_check @@ -59,7 +59,7 @@ jobs: run: working-directory: ./frontend steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Install modules run: yarn - name: Run ESLint diff --git a/.github/workflows/notifyMigrationChanges.yml b/.github/workflows/notifyMigrationChanges.yml index a21f09bbf..4f4d8534f 100644 --- a/.github/workflows/notifyMigrationChanges.yml +++ b/.github/workflows/notifyMigrationChanges.yml @@ -17,18 +17,18 @@ jobs: pull-requests: write steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Check for previous comment id: notify_comment_search - uses: peter-evans/find-comment@v2 + uses: peter-evans/find-comment@v3 with: issue-number: ${{ github.event.number }} body-includes: ${{ env.message }} - name: Add comment if no comment exists if: ${{ !steps.notify_comment_search.outputs.comment-body }} - uses: peter-evans/create-or-update-comment@v2 + uses: peter-evans/create-or-update-comment@v4 with: token: ${{ secrets.GITHUB_TOKEN }} issue-number: ${{ github.event.number }} diff --git a/.github/workflows/notifyPossibleMigrationUpdate.yml b/.github/workflows/notifyPossibleMigrationUpdate.yml index 5fed3ed19..99a4df4e8 100644 --- a/.github/workflows/notifyPossibleMigrationUpdate.yml +++ b/.github/workflows/notifyPossibleMigrationUpdate.yml @@ -18,11 +18,11 @@ jobs: pull-requests: write steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Get changed files in the migrations folder id: changed_files - uses: tj-actions/changed-files@v35.6.1 + uses: tj-actions/changed-files@v45 with: files: backend/api/Migrations/** sha: ${{ github.event.pull_request.head.sha }} @@ -30,7 +30,7 @@ jobs: - name: If no migrations, check for previous comment if: ${{ steps.changed_files.outputs.any_changed != 'true' }} id: notify_comment_search - uses: peter-evans/find-comment@v2 + uses: peter-evans/find-comment@v3 with: issue-number: ${{ github.event.number }} body-includes: ${{ env.message }} @@ -39,7 +39,7 @@ jobs: if: | !steps.notify_comment_search.outputs.comment-body && steps.changed_files.outputs.any_changed != 'true' - uses: peter-evans/create-or-update-comment@v2 + uses: peter-evans/create-or-update-comment@v4 with: token: ${{ secrets.GITHUB_TOKEN }} issue-number: ${{ github.event.number }} diff --git a/.github/workflows/promote_to_production.yml b/.github/workflows/promote_to_production.yml index 14595e86c..c53601ecc 100644 --- a/.github/workflows/promote_to_production.yml +++ b/.github/workflows/promote_to_production.yml @@ -25,7 +25,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout infrastructure - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: main repository: equinor/robotics-infrastructure diff --git a/.github/workflows/publish_component.yml b/.github/workflows/publish_component.yml index 606f2eb8d..88bfc2a01 100644 --- a/.github/workflows/publish_component.yml +++ b/.github/workflows/publish_component.yml @@ -30,10 +30,10 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Log in to the Github Container registry - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: registry: ${{ inputs.Registry }} username: ${{ secrets.RegistryUsername }} @@ -41,12 +41,12 @@ jobs: - name: Extract metadata (tags, labels) for Docker id: meta - uses: docker/metadata-action@v4 + uses: docker/metadata-action@v5 with: images: ${{ inputs.Registry }}/${{ inputs.ImageName }}-${{ inputs.ComponentName }} - name: Build and push Docker image - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v6 with: context: ./${{ inputs.ComponentName }} push: true diff --git a/.github/workflows/scan_with_trufflehog.yml b/.github/workflows/scan_with_trufflehog.yml index 6e7addea6..b40b04ac9 100644 --- a/.github/workflows/scan_with_trufflehog.yml +++ b/.github/workflows/scan_with_trufflehog.yml @@ -16,13 +16,13 @@ jobs: shell: bash steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: TruffleHog OSS id: trufflehog - uses: trufflesecurity/trufflehog@v3.63.1 + uses: trufflesecurity/trufflehog@v3.82.7 continue-on-error: true with: path: ./ diff --git a/.github/workflows/updateDatabase.yml b/.github/workflows/updateDatabase.yml index e881ce3ee..cd879f009 100644 --- a/.github/workflows/updateDatabase.yml +++ b/.github/workflows/updateDatabase.yml @@ -62,13 +62,13 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: React to comment - uses: peter-evans/create-or-update-comment@v3 + uses: peter-evans/create-or-update-comment@v4 with: comment-id: ${{ github.event.comment.id }} reactions: confused, -1 - name: Add comment - uses: peter-evans/create-or-update-comment@v3 + uses: peter-evans/create-or-update-comment@v4 with: token: ${{ secrets.GITHUB_TOKEN }} issue-number: ${{ github.event.issue.number }} @@ -90,13 +90,13 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: React to comment - uses: peter-evans/create-or-update-comment@v3 + uses: peter-evans/create-or-update-comment@v4 with: comment-id: ${{ github.event.comment.id }} reactions: rocket, +1 - name: Add comment - uses: peter-evans/create-or-update-comment@v3 + uses: peter-evans/create-or-update-comment@v4 with: token: ${{ secrets.GITHUB_TOKEN }} issue-number: ${{ github.event.issue.number }} @@ -120,7 +120,7 @@ jobs: pull-requests: write steps: - name: Add comment - uses: peter-evans/create-or-update-comment@v3 + uses: peter-evans/create-or-update-comment@v4 with: token: ${{ secrets.GITHUB_TOKEN }} issue-number: ${{ github.event.issue.number }} @@ -135,7 +135,7 @@ jobs: pull-requests: write steps: - name: Add comment - uses: peter-evans/create-or-update-comment@v3 + uses: peter-evans/create-or-update-comment@v4 with: token: ${{ secrets.GITHUB_TOKEN }} issue-number: ${{ github.event.issue.number }} diff --git a/.github/workflows/update_aurora_deployment.yml b/.github/workflows/update_aurora_deployment.yml index 657cd61bd..998a8e49d 100644 --- a/.github/workflows/update_aurora_deployment.yml +++ b/.github/workflows/update_aurora_deployment.yml @@ -34,7 +34,7 @@ jobs: NAME: ${{ inputs.AuthorName }} steps: - name: Checkout infrastructure - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: main repository: equinor/robotics-infrastructure diff --git a/.github/workflows/verifyMigrations.yml b/.github/workflows/verifyMigrations.yml index ef212f341..b1f5b978b 100644 --- a/.github/workflows/verifyMigrations.yml +++ b/.github/workflows/verifyMigrations.yml @@ -12,7 +12,7 @@ jobs: if: ${{ github.event_name == 'pull_request_target' }} steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Get changed files in the migrations folder id: changed-files-specific @@ -24,7 +24,7 @@ jobs: - name: If files changed, check for database success if: ${{ steps.changed-files-specific.outputs.any_changed == 'true' }} id: database_comment_search - uses: peter-evans/find-comment@v2 + uses: peter-evans/find-comment@v3 with: issue-number: ${{ github.event.number }} body-includes: ${{ env.success_message }} @@ -32,6 +32,6 @@ jobs: - name: Fail if files changed & no database success (comment not found) if: | - steps.changed-files-specific.outputs.any_changed == 'true' && + steps.changed-files-specific.outputs.any_changed == 'true' && !steps.database_comment_search.outputs.comment-body run: exit 1