Skip to content

Commit a035258

Browse files
committed
Update workflow documentation to use commit SHAs
1 parent cb058af commit a035258

2 files changed

Lines changed: 11 additions & 11 deletions

File tree

.github/CI.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ on:
333333
334334
jobs:
335335
ci:
336-
uses: SocketDev/socket-registry/.github/workflows/ci.yml@main
336+
uses: SocketDev/socket-registry/.github/workflows/ci.yml@cb058af30991fa29b82f0c89f7d37397e067d292 # main
337337
with:
338338
coverage-script: 'pnpm run test:coverage'
339339
lint-script: 'pnpm run check:lint'
@@ -357,9 +357,9 @@ jobs:
357357

358358
**Symptom**: "Action not found" or "Invalid action reference" errors.
359359

360-
**Cause**: Actions are referenced using `@main` but changes haven't been pushed/merged.
360+
**Cause**: Actions are referenced using commit SHAs that don't exist yet or changes haven't been pushed/merged.
361361

362-
**Solution**: Push changes to main branch first, or use a specific commit SHA for testing.
362+
**Solution**: Push changes to main branch first, then update references to use the new commit SHA.
363363

364364
## References
365365

.github/README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,16 @@ pnpm run test-ci # CI test suite
4545
All workflows use reusable workflows and actions from `SocketDev/socket-registry`:
4646

4747
### Reusable Workflows
48-
- `SocketDev/socket-registry/.github/workflows/test.yml@main`
49-
- `SocketDev/socket-registry/.github/workflows/lint.yml@main`
50-
- `SocketDev/socket-registry/.github/workflows/types.yml@main`
48+
- `SocketDev/socket-registry/.github/workflows/test.yml@cb058af30991fa29b82f0c89f7d37397e067d292` # main
49+
- `SocketDev/socket-registry/.github/workflows/lint.yml@cb058af30991fa29b82f0c89f7d37397e067d292` # main
50+
- `SocketDev/socket-registry/.github/workflows/types.yml@cb058af30991fa29b82f0c89f7d37397e067d292` # main
5151

5252
### Reusable Actions
53-
- `SocketDev/socket-registry/.github/actions/setup-and-install@main` - Setup Node.js and install dependencies
54-
- `SocketDev/socket-registry/.github/actions/run-script@main` - Execute scripts with error handling
55-
- `SocketDev/socket-registry/.github/actions/artifacts@main` - Upload test results and coverage
56-
- `SocketDev/socket-registry/.github/actions/debug@main` - Debug workflow troubleshooting
57-
- `SocketDev/socket-registry/.github/actions/cache-npm-packages@main` - Cache npm package operations
53+
- `SocketDev/socket-registry/.github/actions/setup-and-install@cb058af30991fa29b82f0c89f7d37397e067d292` # main - Setup Node.js and install dependencies
54+
- `SocketDev/socket-registry/.github/actions/run-script@cb058af30991fa29b82f0c89f7d37397e067d292` # main - Execute scripts with error handling
55+
- `SocketDev/socket-registry/.github/actions/artifacts@cb058af30991fa29b82f0c89f7d37397e067d292` # main - Upload test results and coverage
56+
- `SocketDev/socket-registry/.github/actions/debug@cb058af30991fa29b82f0c89f7d37397e067d292` # main - Debug workflow troubleshooting
57+
- `SocketDev/socket-registry/.github/actions/cache-npm-packages@cb058af30991fa29b82f0c89f7d37397e067d292` # main - Cache npm package operations
5858

5959
## Configuration Files
6060

0 commit comments

Comments
 (0)