Skip to content

Updates tsec and rewrites sinks assignement - #112069

Merged
Johannes Rieken (jrieken) merged 2 commits into
microsoft:masterfrom
engelsdamien:master
Dec 9, 2020
Merged

Johannes Rieken (jrieken) merged 2 commits into
microsoft:masterfrom
engelsdamien:master

Conversation

@engelsdamien

Copy link
Copy Markdown
Contributor

The latest tsec commit fixes a bug where tsec was no building properly postinstall, this PR updates tsec to the latest commit and pins it to that commit in package.json.

This PR also rewrites policy usages to all be of the same shape (i.e. policy?.createHTML(html) ?? html) and moves all the casts to the sinks assignment expressions directly as this is the only way tsec can recognize them.

This PR fixes #111289
Related issues are #108400 #103699 & google/tsec#18

This fixes the bug where tsec was not running a postinstall build, which
caused it to keep running an old version.

This new version comes with new violations and Trusted Types awareness.

Also pins tsec to the latest commit so that the version fetched is
always the same.
Moves the casts to the sink assignement expression so that tsec can
recognize it.
@ghost

Deleted user (ghost) commented Dec 8, 2020 •

Copy link
Copy Markdown

CLA assistant check
All CLA requirements met.

@engelsdamien

Copy link
Copy Markdown
Contributor Author

Krzysztof Kotowicz (@koto) & Pei Wang (@uraj) for visibility

@jrieken

Copy link
Copy Markdown
Contributor

Thanks Damien Engels (@engelsdamien)!

@jrieken
Johannes Rieken (jrieken) merged commit a0cbecb into microsoft:master Dec 9, 2020
@github-actions github-actions Bot locked and limited conversation to collaborators Jan 24, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

tsec is not version locked

3 participants