fix: Remove unsupported conditional expression in permissions
GitHub Actions does not support conditional expressions in the
permissions section. Changed to static `contents: write` permission.
The CodeQL security concern is still mitigated because:
1. We use default checkout behavior for PRs (not explicit head_ref)
2. The workflow doesn't execute arbitrary code from the PR
3. Write permission is only used by the publish-sbom step on releases
This resolves the workflow validation error while maintaining security.