mirror of
https://github.com/speed47/spectre-meltdown-checker.git
synced 2026-06-06 22:53:03 +02:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 3f4801e6a7 | |||
| 9a3688b6fd | |||
| 0c89d162a3 | |||
| 02fa416bab |
@@ -7,21 +7,26 @@ on:
|
|||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
pull-requests: write
|
pull-requests: write
|
||||||
|
contents: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
autoupdate:
|
autoupdate:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
|
with:
|
||||||
|
ref: source
|
||||||
- name: Install prerequisites
|
- name: Install prerequisites
|
||||||
run: sudo apt-get update && sudo apt-get install -y --no-install-recommends iucode-tool sqlite3 unzip
|
run: sudo apt-get update && sudo apt-get install -y --no-install-recommends iucode-tool sqlite3 unzip shfmt
|
||||||
- name: Update microcode versions
|
- name: Update microcode versions
|
||||||
run: ./spectre-meltdown-checker.sh --update-builtin-fwdb
|
run: ./scripts/update_mcedb.sh
|
||||||
|
- name: Update Intel models
|
||||||
|
run: ./scripts/update_intel_models.sh
|
||||||
- name: Check git diff
|
- name: Check git diff
|
||||||
id: diff
|
id: diff
|
||||||
run: |
|
run: |
|
||||||
echo change="$(git diff spectre-meltdown-checker.sh | awk '/MCEDB/ { if(V) { print V" to "$4; exit } else { V=$4 } }')" >> "$GITHUB_OUTPUT"
|
echo change="$(git diff | awk '/MCEDB/ { if(V) { print V" to "$4; exit } else { V=$4 } }')" >> "$GITHUB_OUTPUT"
|
||||||
echo nbdiff="$(git diff spectre-meltdown-checker.sh | grep -cE -- '^\+# [AI],')" >> "$GITHUB_OUTPUT"
|
echo nbdiff="$(git diff | grep -cE -- '^\+# [AI],')" >> "$GITHUB_OUTPUT"
|
||||||
git diff
|
git diff
|
||||||
cat "$GITHUB_OUTPUT"
|
cat "$GITHUB_OUTPUT"
|
||||||
- name: Create Pull Request if needed
|
- name: Create Pull Request if needed
|
||||||
|
|||||||
@@ -272,23 +272,23 @@ In **Hardware-only** mode, the script only reports CPU information and per-CVE h
|
|||||||
|
|
||||||
- Get the latest version of the script using `curl` *or* `wget`
|
- Get the latest version of the script using `curl` *or* `wget`
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
curl -L https://meltdown.ovh -o spectre-meltdown-checker.sh
|
curl -L https://meltdown.ovh -o spectre-meltdown-checker.sh
|
||||||
wget https://meltdown.ovh -O spectre-meltdown-checker.sh
|
wget https://meltdown.ovh -O spectre-meltdown-checker.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
- Inspect the script. You never blindly run scripts you downloaded from the Internet, do you?
|
- Inspect the script. You never blindly run scripts you downloaded from the Internet, do you?
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
vim spectre-meltdown-checker.sh
|
vim spectre-meltdown-checker.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
- When you're ready, run the script as root
|
- When you're ready, run the script as root
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
chmod +x spectre-meltdown-checker.sh
|
chmod +x spectre-meltdown-checker.sh
|
||||||
sudo ./spectre-meltdown-checker.sh
|
sudo ./spectre-meltdown-checker.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
### Using a docker container
|
### Using a docker container
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user