diff --git a/.github/workflows/build-ci.yml b/.github/workflows/build-ci.yml index e9279d3d..41b2959e 100644 --- a/.github/workflows/build-ci.yml +++ b/.github/workflows/build-ci.yml @@ -26,7 +26,7 @@ jobs: build-operator: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Install podman v4 run: | echo "deb $OPENSUSE_UNOFFICIAL_LIBCONTAINERS_SOURCE_URL/ /" | sudo tee /etc/apt/sources.list.d/devel:kubic:libcontainers:unstable.list @@ -63,7 +63,7 @@ jobs: build-bundle: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Build bundle image run: IMAGE_NAMESPACE=${{ env.CI_REGISTRY }} make bundle-build - name: Tag image @@ -93,7 +93,7 @@ jobs: build-scorecard: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Get scorecard image tag id: get-image-tag run: | diff --git a/.github/workflows/test-ci-command.yml b/.github/workflows/test-ci-command.yml index 888f8401..0c10671d 100644 --- a/.github/workflows/test-ci-command.yml +++ b/.github/workflows/test-ci-command.yml @@ -34,11 +34,11 @@ jobs: && (!contains(github.event.issue.labels.*.name, 'safe-to-test') || github.event.issue.user.name != github.event.comment.user.name) run: exit 1 - name: React to comment - uses: actions/github-script@v4 + uses: actions/github-script@v6 with: script: | const {owner, repo} = context.issue - github.reactions.createForIssueComment({ + github.rest.reactions.createForIssueComment({ owner, repo, comment_id: context.payload.comment.id, @@ -55,11 +55,11 @@ jobs: PR_num: ${{ fromJSON(steps.comment-branch.outputs.result).num }} PR_repo: ${{ fromJSON(steps.comment-branch.outputs.result).repo }} steps: - - uses: actions/github-script@v4 + - uses: actions/github-script@v6 id: comment-branch with: script: | - const result = await github.pulls.get ({ + const result = await github.rest.pulls.get ({ owner: context.repo.owner, repo: context.repo.repo, pull_number: context.issue.number diff --git a/.github/workflows/test-ci-reusable.yml b/.github/workflows/test-ci-reusable.yml index 38a361c3..b4acc1c4 100644 --- a/.github/workflows/test-ci-reusable.yml +++ b/.github/workflows/test-ci-reusable.yml @@ -35,14 +35,14 @@ jobs: controller-test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: repository: ${{ inputs.repository }} ref: ${{ inputs.ref }} - - uses: actions/setup-go@v2 + - uses: actions/setup-go@v4 with: go-version: '1.20.*' - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: | ~/go/pkg/mod @@ -56,7 +56,7 @@ jobs: scorecard-test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: repository: ${{ inputs.repository }} ref: ${{ inputs.ref }}