Skip to content

Commit 910285d

Browse files
committed
Update CI contents permission to write; add SBOM note to README
1 parent d497b1c commit 910285d

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

.github/workflows/ci.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ jobs:
1212
# https://github.com/actions/runner-images
1313
runs-on: ubuntu-24.04
1414

15-
# Required for attestation
15+
# Required for attestation and release
1616
permissions:
17-
id-token: write
18-
contents: read
19-
attestations: write
17+
id-token: write # attestation requires `write`
18+
contents: write # release requires `write`, attestation requires at least `read`
19+
attestations: write # attestation requires `write`
2020

2121
steps:
2222

README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -386,9 +386,11 @@ Commands are not passed through a shell for execution. Although it is possible t
386386
with `libnss_shim`, using a shell is not recommended as this comes with additional risks such as command injection.
387387
388388
To verify artifact attestations for official releases build with GitHub Actions, the [GitHub CLI](https://docs.github.com/en/actions/security-guides/using-artifact-attestations-to-establish-provenance-for-builds#verifying-artifact-attestations-with-the-github-cli)
389-
can be used. Note that this is not available for versions `<=1.2.0`. Example command:
389+
can be used (available for versions `>=1.2.1`). Example command:
390390
391-
gh attestation verify /set/the/path/to/libnss_shim.deb -R xenago/libnss_shim
391+
gh attestation verify /path/to/libnss_shim.deb -R xenago/libnss_shim
392+
393+
SBOM artifacts are produced in CI for each build.
392394
393395
Please report problems by creating GitHub Issues or [private advisories](https://docs.github.com/en/code-security/security-advisories/guidance-on-reporting-and-writing-information-about-vulnerabilities/privately-reporting-a-security-vulnerability).
394396

changelog/CHANGELOG.txt

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
- Add note to README about script permissions for users (`group`/`passwd` OK public, `shadow` best private)
33
- Add advanced example with scripts for each function and a Dockerfile
44
- Migrate to a single configurable build script with CPU architecture detection
5+
- Explicitly set `contents` permission to `write` in CI
56
- From this release onwards, deb packages will have a `-1` version suffix to match RPM
67
- Bump `cargo-deb` to `2.2.0`
78
- Bump ubuntu build container to `24.04`

0 commit comments

Comments
 (0)