Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 34 additions & 1 deletion .github/workflows/tag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ jobs:
build_push_docker:
name: Build and Push Docker image
runs-on: ubuntu-latest
permissions:
id-token: write
attestations: write
packages: write
contents: read
steps:
- uses: actions/checkout@v4

Expand Down Expand Up @@ -68,7 +73,8 @@ jobs:
env:
IMAGE_TAG: ${{ steps.get_version.outputs.version-without-v }}-test

- name: Build and push new docker image
- id: build_push
name: Build and push new docker image
uses: docker/build-push-action@v6
with:
push: true
Expand All @@ -81,6 +87,33 @@ jobs:
labels: |
org.opencontainers.image.source=${{ github.event.repository.html_url }}

# Note: SBOM covers the amd64 variant only (Syft limitation with a single image: reference on ubuntu-latest).
- name: Generate SBOM
uses: anchore/sbom-action@e22c389904149dbc22b58101806040fa8d37a610 # v0.24.0
with:
image: ghcr.io/${{ steps.repository_owner.outputs.lowercase }}/oidc-server-mock:${{ steps.get_version.outputs.version-without-v }}
format: spdx-json
output-file: sbom.spdx.json
upload-artifact: true
upload-artifact-retention: 90

# Note: actions/attest-sbom v4 is a deprecated wrapper around actions/attest; functional, migrate separately.
- name: Attest SBOM
uses: actions/attest-sbom@c604332985a26aa8cf1bdc465b92731239ec6b9e # v4.1.0
with:
subject-name: ghcr.io/${{ steps.repository_owner.outputs.lowercase }}/oidc-server-mock
subject-digest: ${{ steps.build_push.outputs.digest }}
sbom-path: sbom.spdx.json
push-to-registry: true

# Note: actions/attest-build-provenance v4 is a deprecated wrapper around actions/attest; functional, migrate separately.
- name: Attest build provenance
uses: actions/attest-build-provenance@a2bbfa25375fe432b6a289bc6b6cd05ecd0c4c32 # v4.1.0
with:
subject-name: ghcr.io/${{ steps.repository_owner.outputs.lowercase }}/oidc-server-mock
subject-digest: ${{ steps.build_push.outputs.digest }}
push-to-registry: true

build_push_nuget:
name: Build and Push Nuget package
runs-on: ubuntu-latest
Expand Down
6 changes: 3 additions & 3 deletions e2e/tests/custom-endpoints/user-management.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,15 +100,15 @@ describe('User management', () => {
sub: expect.any(String),
name: expect.any(String),
email: expect.any(String),
['some-custom-identity-user-claim']: expect.any(String) as unknown,
['some-custom-identity-user-claim']: expect.any(String),
});
}, 10000);

test('Introspection Endpoint', async () => {
await introspectEndpoint(token, 'some-app', {
sub: expect.any(String),
['some-app-user-custom-claim']: expect.any(String) as unknown,
['some-app-scope-1-custom-user-claim']: expect.any(String) as unknown,
['some-app-user-custom-claim']: expect.any(String),
['some-app-scope-1-custom-user-claim']: expect.any(String),
});
});
});
Loading