Skip to content

Commit 592189c

Browse files
Copilotpsastras
andcommitted
Update GitHub Action versions across all documentation
Co-authored-by: psastras <857105+psastras@users.noreply.github.com>
1 parent d7933bc commit 592189c

File tree

10 files changed

+41
-61
lines changed

10 files changed

+41
-61
lines changed

clang-tidy-sarif/README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,18 +85,16 @@ jobs:
8585
runs-on: ubuntu-latest
8686
if: ${{ github.ref == 'refs/heads/main' }}
8787
steps:
88-
- uses: actions/checkout@v2
89-
- uses: actions-rs/toolchain@v1
88+
- uses: actions/checkout@v4
89+
- uses: dtolnay/rust-toolchain@stable
9090
with:
91-
profile: minimal
9291
toolchain: stable
93-
override: true
94-
- uses: Swatinem/rust-cache@v1
92+
- uses: Swatinem/rust-cache@v2
9593
- run: cargo install clang-tidy-sarif sarif-fmt
9694
- run: clang-tidy -checks=cert-* -warnings-as-errors=* main.cpp -- | clang-tidy-sarif | tee
9795
results.sarif | sarif-fmt
9896
- name: Upload SARIF file
99-
uses: github/codeql-action/upload-sarif@v1
97+
uses: github/codeql-action/upload-sarif@v4
10098
with:
10199
sarif_file: results.sarif
102100
```

clang-tidy-sarif/src/bin.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,19 +61,17 @@
6161
//! runs-on: ubuntu-latest
6262
//! if: ${{ github.ref == 'refs/heads/main' }}
6363
//! steps:
64-
//! - uses: actions/checkout@v2
65-
//! - uses: actions-rs/toolchain@v1
64+
//! - uses: actions/checkout@v4
65+
//! - uses: dtolnay/rust-toolchain@stable
6666
//! with:
67-
//! profile: minimal
6867
//! toolchain: stable
69-
//! override: true
70-
//! - uses: Swatinem/rust-cache@v1
68+
//! - uses: Swatinem/rust-cache@v2
7169
//! - run: cargo install clang-tidy-sarif sarif-fmt
7270
//! - run:
7371
//! clang-tidy -checks=cert-* -warnings-as-errors=* main.cpp -- | tee
7472
//! results.sarif | sarif-fmt
7573
//! - name: Upload SARIF file
76-
//! uses: github/codeql-action/upload-sarif@v1
74+
//! uses: github/codeql-action/upload-sarif@v4
7775
//! with:
7876
//! sarif_file: results.sarif
7977
//! ```

clippy-sarif/README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,19 +85,17 @@ jobs:
8585
runs-on: ubuntu-latest
8686
if: ${{ github.ref == 'refs/heads/main' }}
8787
steps:
88-
- uses: actions/checkout@v2
89-
- uses: actions-rs/toolchain@v1
88+
- uses: actions/checkout@v4
89+
- uses: dtolnay/rust-toolchain@stable
9090
with:
91-
profile: minimal
9291
toolchain: stable
9392
components: clippy,rustfmt
94-
override: true
95-
- uses: Swatinem/rust-cache@v1
93+
- uses: Swatinem/rust-cache@v2
9694
- run: cargo install clippy-sarif sarif-fmt
9795
- run: cargo clippy --all-targets --all-features --message-format=json |
9896
clippy-sarif | tee results.sarif | sarif-fmt
9997
- name: Upload SARIF file
100-
uses: github/codeql-action/upload-sarif@v1
98+
uses: github/codeql-action/upload-sarif@v4
10199
with:
102100
sarif_file: results.sarif
103101
```

clippy-sarif/src/bin.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,20 +61,18 @@
6161
//! runs-on: ubuntu-latest
6262
//! if: ${{ github.ref == 'refs/heads/main' }}
6363
//! steps:
64-
//! - uses: actions/checkout@v2
65-
//! - uses: actions-rs/toolchain@v1
64+
//! - uses: actions/checkout@v4
65+
//! - uses: dtolnay/rust-toolchain@stable
6666
//! with:
67-
//! profile: minimal
6867
//! toolchain: stable
6968
//! components: clippy,rustfmt
70-
//! override: true
71-
//! - uses: Swatinem/rust-cache@v1
69+
//! - uses: Swatinem/rust-cache@v2
7270
//! - run: cargo install clippy-sarif sarif-fmt
7371
//! - run:
7472
//! cargo clippy --all-targets --all-features --message-format=json |
7573
//! clippy-sarif | tee results.sarif | sarif-fmt
7674
//! - name: Upload SARIF file
77-
//! uses: github/codeql-action/upload-sarif@v1
75+
//! uses: github/codeql-action/upload-sarif@v4
7876
//! with:
7977
//! sarif_file: results.sarif
8078
//! ```

hadolint-sarif/README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,18 +85,16 @@ jobs:
8585
runs-on: ubuntu-latest
8686
if: ${{ github.ref == 'refs/heads/main' }}
8787
steps:
88-
- uses: actions/checkout@v2
89-
- uses: actions-rs/toolchain@v1
88+
- uses: actions/checkout@v4
89+
- uses: dtolnay/rust-toolchain@stable
9090
with:
91-
profile: minimal
9291
toolchain: stable
93-
override: true
94-
- uses: Swatinem/rust-cache@v1
92+
- uses: Swatinem/rust-cache@v2
9593
- run: cargo install hadolint-sarif sarif-fmt
9694
- run: hadolint -f json Dockerfile | hadolint-sarif | tee results.sarif |
9795
sarif-fmt
9896
- name: Upload SARIF file
99-
uses: github/codeql-action/upload-sarif@v1
97+
uses: github/codeql-action/upload-sarif@v4
10098
with:
10199
sarif_file: results.sarif
102100
```

hadolint-sarif/src/bin.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,19 +61,17 @@
6161
//! runs-on: ubuntu-latest
6262
//! if: ${{ github.ref == 'refs/heads/main' }}
6363
//! steps:
64-
//! - uses: actions/checkout@v2
65-
//! - uses: actions-rs/toolchain@v1
64+
//! - uses: actions/checkout@v4
65+
//! - uses: dtolnay/rust-toolchain@stable
6666
//! with:
67-
//! profile: minimal
6867
//! toolchain: stable
69-
//! override: true
70-
//! - uses: Swatinem/rust-cache@v1
68+
//! - uses: Swatinem/rust-cache@v2
7169
//! - run: cargo install hadolint-sarif sarif-fmt
7270
//! - run:
7371
//! hadolint -f json Dockerfile |
7472
//! hadolint-sarif | tee results.sarif | sarif-fmt
7573
//! - name: Upload SARIF file
76-
//! uses: github/codeql-action/upload-sarif@v1
74+
//! uses: github/codeql-action/upload-sarif@v4
7775
//! with:
7876
//! sarif_file: results.sarif
7977
//! ```

miri-sarif/README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -103,19 +103,17 @@ jobs:
103103
runs-on: ubuntu-latest
104104
if: ${{ github.ref == 'refs/heads/main' }}
105105
steps:
106-
- uses: actions/checkout@v2
107-
- uses: actions-rs/toolchain@v1
106+
- uses: actions/checkout@v4
107+
- uses: dtolnay/rust-toolchain@stable
108108
with:
109-
profile: minimal
110109
toolchain: nightly
111110
components: miri
112-
override: true
113-
- uses: Swatinem/rust-cache@v1
111+
- uses: Swatinem/rust-cache@v2
114112
- run: cargo install miri-sarif sarif-fmt cargo-nextest
115113
- run: MIRIFLAGS="--error-format=json" cargo miri nextest run --no-fail-fast --success-output immediate 2>&1 |
116114
miri-sarif | tee results.sarif | sarif-fmt
117115
- name: Upload SARIF file
118-
uses: github/codeql-action/upload-sarif@v3
116+
uses: github/codeql-action/upload-sarif@v4
119117
with:
120118
sarif_file: results.sarif
121119
```

miri-sarif/src/bin.rs

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
//! Github Advanced Security (GHAS), which can show code alerts in the
6161
//! "Security" tab of your repository.
6262
//!
63-
//! After uploading `clippy-sarif` output to Github, `clippy` diagnostics
63+
//! After uploading `miri-sarif` output to Github, `miri` diagnostics
6464
//! are available in GHAS.
6565
//!
6666
//! ### Example
@@ -79,19 +79,17 @@
7979
//! runs-on: ubuntu-latest
8080
//! if: ${{ github.ref == 'refs/heads/main' }}
8181
//! steps:
82-
//! - uses: actions/checkout@v2
83-
//! - uses: actions-rs/toolchain@v1
82+
//! - uses: actions/checkout@v4
83+
//! - uses: dtolnay/rust-toolchain@stable
8484
//! with:
85-
//! profile: minimal
8685
//! toolchain: nightly
8786
//! components: miri
88-
//! override: true
89-
//! - uses: Swatinem/rust-cache@v1
87+
//! - uses: Swatinem/rust-cache@v2
9088
//! - run: cargo install miri-sarif sarif-fmt cargo-nextest
9189
//! - run: MIRIFLAGS="--error-format=json" cargo miri nextest run --no-fail-fast --success-output immediate 2>&1 |
9290
//! miri-sarif | tee results.sarif | sarif-fmt
9391
//! - name: Upload SARIF file
94-
//! uses: github/codeql-action/upload-sarif@v3
92+
//! uses: github/codeql-action/upload-sarif@v4
9593
//! with:
9694
//! sarif_file: results.sarif
9795
//! ```

shellcheck-sarif/README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,18 +85,16 @@ jobs:
8585
runs-on: ubuntu-latest
8686
if: ${{ github.ref == 'refs/heads/main' }}
8787
steps:
88-
- uses: actions/checkout@v2
89-
- uses: actions-rs/toolchain@v1
88+
- uses: actions/checkout@v4
89+
- uses: dtolnay/rust-toolchain@stable
9090
with:
91-
profile: minimal
9291
toolchain: stable
93-
override: true
94-
- uses: Swatinem/rust-cache@v1
92+
- uses: Swatinem/rust-cache@v2
9593
- run: cargo install shellcheck-sarif sarif-fmt
9694
- run: shellcheck -f json shellscript.sh | shellcheck-sarif | tee
9795
results.sarif | sarif-fmt
9896
- name: Upload SARIF file
99-
uses: github/codeql-action/upload-sarif@v1
97+
uses: github/codeql-action/upload-sarif@v4
10098
with:
10199
sarif_file: results.sarif
102100
```

shellcheck-sarif/src/bin.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,19 +61,17 @@
6161
//! runs-on: ubuntu-latest
6262
//! if: ${{ github.ref == 'refs/heads/main' }}
6363
//! steps:
64-
//! - uses: actions/checkout@v2
65-
//! - uses: actions-rs/toolchain@v1
64+
//! - uses: actions/checkout@v4
65+
//! - uses: dtolnay/rust-toolchain@stable
6666
//! with:
67-
//! profile: minimal
6867
//! toolchain: stable
69-
//! override: true
70-
//! - uses: Swatinem/rust-cache@v1
68+
//! - uses: Swatinem/rust-cache@v2
7169
//! - run: cargo install shellcheck-sarif sarif-fmt
7270
//! - run:
7371
//! shellcheck -f json shellscript.sh |
7472
//! shellcheck-sarif | tee results.sarif | sarif-fmt
7573
//! - name: Upload SARIF file
76-
//! uses: github/codeql-action/upload-sarif@v1
74+
//! uses: github/codeql-action/upload-sarif@v4
7775
//! with:
7876
//! sarif_file: results.sarif
7977
//! ```

0 commit comments

Comments
 (0)