From a524293cd7c786204a735db4e2304faebe9817eb Mon Sep 17 00:00:00 2001 From: Stacey Van Herk <13419300+svanherk@users.noreply.github.com> Date: Mon, 21 Sep 2026 15:39:49 -0400 Subject: [PATCH 1/2] GAUD-10637 - Add workflow permissions --- .github/workflows/ci.yml | 4 ++++ .github/workflows/release.yml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 15dd078..0039150 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,5 +1,9 @@ name: CI on: pull_request + +permissions: + contents: read + jobs: test: timeout-minutes: 5 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 200b2be..a608177 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,6 +3,10 @@ on: push: branches: - main + +permissions: + contents: read + jobs: release: name: Release From 88b6fb57857a618ada245d86d418706f638de415 Mon Sep 17 00:00:00 2001 From: Stacey Van Herk <13419300+svanherk@users.noreply.github.com> Date: Mon, 21 Sep 2026 17:41:16 -0400 Subject: [PATCH 2/2] Fix tests --- test/d2l-localize-behavior.test.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/d2l-localize-behavior.test.js b/test/d2l-localize-behavior.test.js index c2a3897..3bda4b5 100644 --- a/test/d2l-localize-behavior.test.js +++ b/test/d2l-localize-behavior.test.js @@ -234,30 +234,30 @@ describe('d2l-localize-behavior', () => { it('should format a time using default format', () => { const val = elem.formatTime(date); - expect(val).to.equal('5:13 PM'); + expect(val).to.equal('5:13 PM'); }); it('should format a time using specified format', () => { const val = elem.formatTime(date, { format: 'full' }); - expect(val).to.equal('5:13 PM '); + expect(val).to.equal('5:13 PM '); }); it('should format time via data binding', () => { - expect(elem.$$('.time').innerText).to.equal('5:13 PM'); + expect(elem.$$('.time').innerText).to.equal('5:13 PM'); }); it('should format a date/time using default format', () => { const val = elem.formatDateTime(date); - expect(val).to.equal('12/1/2017 5:13 PM'); + expect(val).to.equal('12/1/2017 5:13 PM'); }); it('should format a date/time using specified format', () => { const val = elem.formatDateTime(date, { format: 'medium' }); - expect(val).to.equal('Dec 1, 2017 5:13 PM'); + expect(val).to.equal('Dec 1, 2017 5:13 PM'); }); it('should format a date/time using data binding', () => { - expect(elem.$$('.date-time').innerText).to.equal('12/1/2017 5:13 PM'); + expect(elem.$$('.date-time').innerText).to.equal('12/1/2017 5:13 PM'); }); it('should parse a date', () => {