Skip to content

Commit d08736f

Browse files
authored
Merge branch 'main' into mergify/configuration-deprecated-update
2 parents 14b26cf + 31b6b8a commit d08736f

37 files changed

Lines changed: 169 additions & 169 deletions

File tree

.devcontainer/Dockerfile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,17 @@ FROM fedora:latest
22

33
ENV PATH "$PATH:/home/vscode/.cargo/bin"
44

5-
RUN bash -c "$(curl -fsSL "https://raw.githubusercontent.com/microsoft/vscode-dev-containers/main/script-library/common-redhat.sh")" -- "true" "vscode" "1000" "1000" "true"
5+
# Create vscode user with sudo access
6+
RUN groupadd --gid 1000 vscode \
7+
&& useradd --uid 1000 --gid 1000 -m vscode \
8+
&& echo "vscode ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
69

10+
# Install development dependencies
711
RUN dnf install -y \
812
sudo git cargo rust rust-src git-core openssl openssl-devel clippy rustfmt golang tpm2-tss-devel clevis clevis-luks cryptsetup cryptsetup-devel clang-devel sqlite sqlite-devel libpq libpq-devel \
913
&& dnf clean all
1014

1115
USER vscode
1216

13-
RUN cargo install --force diesel_cli --no-default-features --features sqlite
17+
RUN cargo install --force diesel_cli --no-default-features --features sqlite
18+

.devcontainer/devcontainer.json

Lines changed: 16 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,39 +5,34 @@
55
},
66
"containerUser": "vscode",
77
"updateRemoteUserUID": true,
8-
"containerEnv": {
9-
"HOME": "/home/vscode"
10-
},
118
"runArgs": [
12-
"--userns=keep-id:uid=1000,gid=1000",
139
"--cap-add=SYS_PTRACE",
1410
"--security-opt",
1511
"seccomp=unconfined"
1612
],
17-
"settings": {
18-
"files.watcherExclude": {
19-
"**/target/**": true
20-
},
21-
"rust-analyzer.checkOnSave.command": "clippy"
13+
"customizations": {
14+
"vscode": {
15+
"settings": {
16+
"files.watcherExclude": {
17+
"**/target/**": true
18+
},
19+
"rust-analyzer.checkOnSave.command": "clippy"
20+
},
21+
"extensions": [
22+
"mutantdino.resourcemonitor",
23+
"matklad.rust-analyzer",
24+
"tamasfe.even-better-toml",
25+
"serayuzgur.crates",
26+
"rust-lang.rust-analyzer"
27+
]
28+
}
2229
},
23-
"extensions": [
24-
"mutantdino.resourcemonitor",
25-
"matklad.rust-analyzer",
26-
"tamasfe.even-better-toml",
27-
"serayuzgur.crates",
28-
"rust-lang.rust-analyzer"
29-
],
3030
"remoteEnv": {
3131
"PATH": "${containerEnv:PATH}:/home/vscode/.cargo/bin",
3232
"SQLITE_MANUFACTURER_DATABASE_URL": "../ci-manufacturer-db.sqlite",
3333
"SQLITE_OWNER_DATABASE_URL": "../ci-owner-db.sqlite",
3434
"SQLITE_RENDEZVOUS_DATABASE_URL": "../ci-rendezvous-db.sqlite"
3535
},
36-
"containerEnv": {
37-
"SQLITE_MANUFACTURER_DATABASE_URL": "../ci-manufacturer-db.sqlite",
38-
"SQLITE_OWNER_DATABASE_URL": "../ci-owner-db.sqlite",
39-
"SQLITE_RENDEZVOUS_DATABASE_URL": "../ci-rendezvous-db.sqlite"
40-
},
4136
"hostRequirements": {
4237
"memory": "4gb"
4338
},

.github/labeler.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1-
possible stability impact:
2-
- libfdo-data/fdo_data.h
3-
- libfdo-data/libfdo-data-go.doc
1+
"possible stability impact":
2+
- changed-files:
3+
- any-glob-to-any-file:
4+
- "libfdo-data/fdo_data.h"
5+
- "libfdo-data/libfdo-data-go.doc"

.github/spellcheck-ignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,6 @@ childs
66
ot
77
marshalling
88
te
9+
blacklist
10+
msdos
11+
ro

.github/workflows/analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
security-events: write
1717
steps:
1818
- name: Checkout code
19-
uses: actions/checkout@v3
19+
uses: actions/checkout@v4
2020
with:
2121
fetch-depth: 0
2222

.github/workflows/cd.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
quay_org: fido-fdo
1919

2020
steps:
21-
- uses: actions/checkout@v3
21+
- uses: actions/checkout@v4
2222

2323
- name: Perform container builds
2424
id: build

.github/workflows/ci.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
name: Test docs building
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v3
14+
- uses: actions/checkout@v4
1515
- uses: actions/jekyll-build-pages@main
1616
with:
1717
source: ./docs
@@ -21,15 +21,15 @@ jobs:
2121
name: Build containers
2222
runs-on: ubuntu-latest
2323
steps:
24-
- uses: actions/checkout@v3
24+
- uses: actions/checkout@v4
2525
- name: Build containers
2626
uses: ./.github/actions/build_containers
2727

2828
check-spelling:
2929
name: Check spelling
3030
runs-on: ubuntu-latest
3131
steps:
32-
- uses: actions/checkout@v3
32+
- uses: actions/checkout@v4
3333
- name: Check spelling
3434
uses: codespell-project/actions-codespell@master
3535
with:
@@ -43,7 +43,7 @@ jobs:
4343
name: Rustfmt
4444
runs-on: ubuntu-latest
4545
steps:
46-
- uses: actions/checkout@v3
46+
- uses: actions/checkout@v4
4747
- uses: dtolnay/rust-toolchain@stable
4848
with:
4949
toolchain: stable
@@ -53,15 +53,15 @@ jobs:
5353
name: Gofmt
5454
runs-on: ubuntu-latest
5555
steps:
56-
- uses: actions/checkout@v3
56+
- uses: actions/checkout@v4
5757
- run: if [ "$(gofmt -d -s -l . | tee /dev/stderr | wc -l)" -gt 0 ]; then exit 1; fi
5858

5959
clippy:
6060
name: Clippy
6161
runs-on: ubuntu-latest
6262
container: fedora:latest
6363
steps:
64-
- uses: actions/checkout@v3
64+
- uses: actions/checkout@v4
6565
- name: Cache
6666
uses: actions/cache@v4
6767
with:
@@ -88,7 +88,7 @@ jobs:
8888
- name: Install deps
8989
run: |
9090
dnf install -y make gcc openssl openssl-devel findutils golang git tpm2-tss-devel swtpm swtpm-tools git clevis clevis-luks cryptsetup cryptsetup-devel clang-devel cracklib-dicts sqlite sqlite-devel libpq libpq-devel
91-
- uses: actions/checkout@v3
91+
- uses: actions/checkout@v4
9292
with:
9393
persist-credentials: false
9494
- name: Fix git trust
@@ -142,7 +142,7 @@ jobs:
142142
postgres_test:
143143
runs-on: ubuntu-latest
144144
steps:
145-
- uses: actions/checkout@v3
145+
- uses: actions/checkout@v4
146146
with:
147147
fetch-depth: 0
148148
- name: Run test
@@ -151,15 +151,15 @@ jobs:
151151
commitlint:
152152
runs-on: ubuntu-latest
153153
steps:
154-
- uses: actions/checkout@v3
154+
- uses: actions/checkout@v4
155155
with:
156156
fetch-depth: 0
157-
- uses: actions/setup-node@v3
157+
- uses: actions/setup-node@v4
158158
with:
159159
node-version: 'latest'
160160
- name: Install commitlint dependencies
161161
run: npm install commitlint
162-
- uses: wagoid/commitlint-github-action@v5
162+
- uses: wagoid/commitlint-github-action@v6
163163
env:
164164
NODE_PATH: ${{ github.workspace }}/node_modules
165165
with:
@@ -171,7 +171,7 @@ jobs:
171171
runs-on: ubuntu-latest
172172
container: fedora:latest
173173
steps:
174-
- uses: actions/checkout@v3
174+
- uses: actions/checkout@v4
175175
- name: install deps
176176
run: |
177177
dnf install -y make python3-docutils
@@ -182,7 +182,7 @@ jobs:
182182
name: Test Devcontainer Creation
183183
runs-on: ubuntu-latest
184184
steps:
185-
- uses: actions/checkout@v3
185+
- uses: actions/checkout@v4
186186
- name: Install devcontainer CLI
187187
run: npm install -g @vscode/dev-container-cli
188188
- name: Build devcontainer

.github/workflows/integration.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ jobs:
104104
run: sudo dnf install -y make gcc openssl openssl-devel findutils golang git tpm2-tss-devel swtpm swtpm-tools git clevis clevis-luks cryptsetup cryptsetup-devel clang-devel cracklib-dicts rust-toolset rpmdevtools python3-docutils createrepo_c podman buildah skopeo
105105

106106
- name: Clone repository
107-
uses: actions/checkout@v3
107+
uses: actions/checkout@v4
108108
with:
109109
ref: ${{ needs.pr-info.outputs.sha }}
110110
fetch-depth: 0
@@ -151,7 +151,7 @@ jobs:
151151
env:
152152
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
153153

154-
- uses: actions/upload-artifact@v3
154+
- uses: actions/upload-artifact@v4
155155
if: ${{ always() }}
156156
with:
157157
name: fido-container

.github/workflows/labeler.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,12 @@ jobs:
1010
triage:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/labeler@v4
13+
- uses: actions/checkout@v4
14+
with:
15+
repository: "fdo-rs/fido-device-onboard-rs"
16+
ref: ${{ github.event.pull_request.head.sha }}
17+
- uses: actions/labeler@v5
1418
with:
1519
repo-token: "${{ secrets.GITHUB_TOKEN }}"
1620
sync-labels: true
21+
configuration-path: '.github/labeler.yml'

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,6 @@
2020
# Source and vendor tar files
2121
fido-device-onboard-rs-*.tar.gz
2222
fido-device-onboard-rs-*-vendor-patched.tar.xz
23+
24+
# SQLite test files
25+
*.sqlite

0 commit comments

Comments
 (0)