Skip to content

Commit 464e818

Browse files
authored
Merge pull request #1 from auths-dev/dev-cliCiSetup
refactor: replace old 3-secret ci-setup with single AUTHS_CI_TOKEN across workflows, docs, justfiles, and templates
2 parents a15a2c2 + f2ef626 commit 464e818

6 files changed

Lines changed: 15 additions & 262 deletions

File tree

.auths/allowed_signers

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# auths:managed — do not edit manually
2+
# auths:attestation
3+
z6MkhPJCPXd5A9VN4wScJkxTtz6de7egZQx78vsiAT1vg3PZ@auths.local namespaces="git" ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICuPK6OfYp7ngZp40Q+Dsrahhks472v6gPIMD0upCRnM
4+
z6MkhfnUUc2UJJ5C9sQQ7GvXmSbQJsdtNKV6HNYcQtTjc7xE@auths.local namespaces="git" ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIC/Ib83sxXogDnEVzLjFBkyC+DhP+cssbPzZAmQhB+Lz
5+
# auths:manual

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,6 @@ jobs:
4141
fetch-depth: 0
4242

4343
- name: Verify commit signatures
44-
uses: auths-dev/auths-verify-github-action@v1
44+
uses: auths-dev/verify@v1
4545
with:
4646
fail-on-unsigned: true

.github/workflows/release.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,7 @@ jobs:
3434
- name: Sign and verify dist/index.js
3535
uses: ./
3636
with:
37-
passphrase: ${{ secrets.AUTHS_CI_PASSPHRASE }}
38-
keychain: ${{ secrets.AUTHS_CI_KEYCHAIN }}
39-
identity-repo: ${{ secrets.AUTHS_CI_IDENTITY_BUNDLE }}
40-
verify-bundle: ${{ secrets.AUTHS_CI_IDENTITY_BUNDLE_JSON }}
37+
token: ${{ secrets.AUTHS_CI_TOKEN }}
4138
files: 'dist/index.js'
4239
verify: true
4340
note: 'GitHub Actions release — ${{ github.ref_name }}'

README.md

Lines changed: 7 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,10 @@ auths init
3535
From the repo you want to sign artifacts in:
3636

3737
```bash
38-
just ci-setup
39-
# or: bash scripts/ci-setup.sh
38+
auths ci setup
4039
```
4140

42-
This creates a limited-capability CI device key and sets the required GitHub secrets automatically.
41+
This creates a limited-capability CI device key and sets a single `AUTHS_CI_TOKEN` GitHub secret automatically.
4342

4443
### 4. Add the action to your release workflow
4544

@@ -88,29 +87,7 @@ jobs:
8887
| `note` | No | | Note to include in the attestation |
8988
| `auths-version` | No | latest | Pin a specific Auths CLI version |
9089

91-
*Either `token` or the individual credential inputs (`passphrase`, `keychain`, `identity-repo`) are required.
92-
93-
### Individual credential inputs (fallback)
94-
95-
If you're not using `AUTHS_CI_TOKEN`, provide these instead:
96-
97-
| Input | Description |
98-
|-------|-------------|
99-
| `passphrase` | Device key passphrase (`AUTHS_CI_PASSPHRASE` secret) |
100-
| `keychain` | Base64-encoded encrypted keychain (`AUTHS_CI_KEYCHAIN` secret) |
101-
| `identity-repo` | Base64-encoded tar.gz of identity repo (`AUTHS_CI_IDENTITY_BUNDLE` secret) |
102-
| `verify-bundle` | Identity bundle JSON for verification (`AUTHS_CI_IDENTITY_BUNDLE_JSON` secret) |
103-
104-
```yaml
105-
- uses: auths-dev/sign@v1
106-
with:
107-
passphrase: ${{ secrets.AUTHS_CI_PASSPHRASE }}
108-
keychain: ${{ secrets.AUTHS_CI_KEYCHAIN }}
109-
identity-repo: ${{ secrets.AUTHS_CI_IDENTITY_BUNDLE }}
110-
verify-bundle: ${{ secrets.AUTHS_CI_IDENTITY_BUNDLE_JSON }}
111-
files: 'dist/index.js'
112-
verify: true
113-
```
90+
*`token` is the `AUTHS_CI_TOKEN` secret generated by `auths ci setup`.
11491

11592
## Outputs
11693

@@ -159,12 +136,12 @@ Consumers can verify your artifacts independently:
159136
auths artifact verify dist/index.js --identity-bundle bundle.json
160137
```
161138

162-
Or using the [auths-dev/auths-verify-github-action](https://github.com/auths-dev/auths-verify-github-action):
139+
Or using the [auths-dev/verify](https://github.com/auths-dev/verify) action:
163140

164141
```yaml
165-
- uses: auths-dev/auths-verify-github-action@v1
142+
- uses: auths-dev/verify@v1
166143
with:
167-
identity-bundle-json: ${{ secrets.AUTHS_CI_IDENTITY_BUNDLE_JSON }}
144+
identity: ${{ secrets.AUTHS_CI_TOKEN }}
168145
artifact-paths: 'dist/index.js'
169146
```
170147

@@ -184,7 +161,7 @@ If the CI device key is compromised:
184161
auths device revoke --device-did <DEVICE_DID> --key <KEY_ALIAS>
185162
```
186163

187-
The device DID and key alias are printed by `just ci-setup` during initial setup. After revocation, existing attestations remain valid (they were legitimate when signed), but the device can no longer produce new ones.
164+
The device DID and key alias are printed by `auths ci setup` during initial setup. After revocation, existing attestations remain valid (they were legitimate when signed), but the device can no longer produce new ones.
188165

189166
## License
190167

justfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ ci: test build check-dist
1919

2020
# Set up CI secrets for release artifact signing (one-time)
2121
ci-setup:
22-
bash scripts/ci-setup.sh
22+
auths ci setup
2323

2424
# Sign the dist/index.js artifact locally (creates dist/index.js.auths.json)
2525
sign-dist:

scripts/ci-setup.sh

Lines changed: 0 additions & 226 deletions
This file was deleted.

0 commit comments

Comments
 (0)