diff --git a/.github/workflows/checkpatch_pull.yml b/.github/workflows/checkpatch_pull.yml index a9ced9892..b19aa58e5 100644 --- a/.github/workflows/checkpatch_pull.yml +++ b/.github/workflows/checkpatch_pull.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@main with: ref: ${{github.event.pull_request.head.sha}} fetch-depth: 0 diff --git a/.github/workflows/checkpatch_push.yml b/.github/workflows/checkpatch_push.yml index 28acad5e5..12b692470 100644 --- a/.github/workflows/checkpatch_push.yml +++ b/.github/workflows/checkpatch_push.yml @@ -15,7 +15,7 @@ jobs: commit: ${{github.event.commits}} steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@main with: ref: ${{matrix.commit.id}} fetch-depth: 2 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2d878d895..02bd99829 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,7 +10,7 @@ jobs: compiler: [gcc, clang] arch: [x86_64] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@main - name: Install build-essential run: | sudo apt-get update diff --git a/.github/workflows/coverity.yml b/.github/workflows/coverity.yml index ebdc75fbb..c6465da9c 100644 --- a/.github/workflows/coverity.yml +++ b/.github/workflows/coverity.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout Project - uses: actions/checkout@v3 + uses: actions/checkout@main - name: Get version id: get_version diff --git a/.github/workflows/mail_notification.yml b/.github/workflows/mail_notification.yml index ac75e71b2..9d585a231 100644 --- a/.github/workflows/mail_notification.yml +++ b/.github/workflows/mail_notification.yml @@ -17,7 +17,7 @@ jobs: commit: ${{github.event.commits}} steps: - name: Checkout Project - uses: actions/checkout@v3 + uses: actions/checkout@main with: ref: ${{matrix.commit.id}} fetch-depth: 2