Skip to content

Bump postcss and @angular-devkit/build-angular in /research-hub-web#404

Open
dependabot[bot] wants to merge 2137 commits intomasterfrom
dependabot/npm_and_yarn/research-hub-web/postcss-and-angular-devkit/build-angular-8.4.31
Open

Bump postcss and @angular-devkit/build-angular in /research-hub-web#404
dependabot[bot] wants to merge 2137 commits intomasterfrom
dependabot/npm_and_yarn/research-hub-web/postcss-and-angular-devkit/build-angular-8.4.31

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot bot commented on behalf of github Oct 8, 2023

Bumps postcss to 8.4.31 and updates ancestor dependency @angular-devkit/build-angular. These dependencies need to be updated together.

Updates postcss from 8.4.5 to 8.4.31

Release notes

Sourced from postcss's releases.

8.4.31

8.4.30

8.4.29

8.4.28

  • Fixed Root.source.end for better source map (by @​romainmenke).
  • Fixed Result.root types when process() has no parser.

8.4.27

  • Fixed Container clone methods types.

8.4.26

  • Fixed clone methods types.

8.4.25

8.4.24

  • Fixed Plugin types.

8.4.23

  • Fixed warnings in TypeDoc.

8.4.22

8.4.21

8.4.20

  • Fixed source map generation for childless at-rules like @layer.

8.4.19

  • Fixed whitespace preserving after AST transformations (by @​romainmenke).

8.4.18

  • Fixed an error on absolute: true with empty sourceContent (by @​KingSora).

8.4.17

8.4.16

... (truncated)

Changelog

Sourced from postcss's changelog.

8.4.31

8.4.30

  • Improved source map performance (by Romain Menke).

8.4.29

  • Fixed Node#source.offset (by Ido Rosenthal).
  • Fixed docs (by Christian Oliff).

8.4.28

  • Fixed Root.source.end for better source map (by Romain Menke).
  • Fixed Result.root types when process() has no parser.

8.4.27

  • Fixed Container clone methods types.

8.4.26

  • Fixed clone methods types.

8.4.25

8.4.24

  • Fixed Plugin types.

8.4.23

  • Fixed warnings in TypeDoc.

8.4.22

  • Fixed TypeScript support with node16 (by Remco Haszing).

8.4.21

  • Fixed Input#error types (by Aleks Hudochenkov).

8.4.20

  • Fixed source map generation for childless at-rules like @layer.

8.4.19

  • Fixed whitespace preserving after AST transformations (by Romain Menke).

8.4.18

  • Fixed an error on absolute: true with empty sourceContent (by Rene Haas).

8.4.17

  • Fixed Node.before() unexpected behavior (by Romain Menke).
  • Added TOC to docs (by Mikhail Dedov).

8.4.16

... (truncated)

Commits

Updates @angular-devkit/build-angular from 13.2.3 to 16.2.5

Release notes

Sourced from @​angular-devkit/build-angular's releases.

v16.2.5

16.2.5 (2023-10-04)

@​angular-devkit/build-angular

Commit Description
fix - 933358186 do not print Angular is running in development mode. in the server console when using dev-server
fix - 493bd3906 update dependency postcss to v8.4.31

v16.2.4

16.2.4 (2023-09-27)

@​schematics/angular

Commit Description
fix - 5dc7fb1a1 update @angular/cli version specifier to use ^

v16.2.3

16.2.3 (2023-09-20)

@​angular-devkit/build-angular

Commit Description
fix - 39643bee1 correctly re-point RXJS to ESM on Windows
fix - d8d116b31 several windows fixes to application builder prerendering

@​ngtools/webpack

Commit Description
fix - f1195d035 fix recursion in webpack resolve

v16.2.2

16.2.2 (2023-09-13)

@​angular-devkit/build-angular

Commit Description
fix - e3a40a49a support dev server proxy pathRewrite field in Vite-based server

v16.2.1

16.2.1 (2023-08-30)

@​angular-devkit/build-angular

Commit Description
fix - 221ab2483 display warning when using resourcesOutputPath with esbuild builder
fix - fe752ad87 encode Sass package resolve directories in importer URLs
fix - 82b0f94fd handle HMR updates of global CSS when using Vite
fix - 6a48a11b8 update vite to be able to serve app-shell and SSG pages
fix - fdb16f7cd use correct type for extraEntryPoints

... (truncated)

Changelog

Sourced from @​angular-devkit/build-angular's changelog.

16.2.5 (2023-10-04)

@​angular-devkit/build-angular

Commit Type Description
933358186 fix do not print Angular is running in development mode. in the server console when using dev-server
493bd3906 fix update dependency postcss to v8.4.31

17.0.0-next.6 (2023-09-27)

Breaking Changes

@​schematics/angular

  • ng g interceptor now generate a functional interceptor by default. or guard by default. To generate a class-based interceptor the --no-functional command flag should be used.

@​schematics/angular

Commit Type Description
741cca73c feat add ng new --ssr
6979eba3c feat enable hydration when adding SSR, SSG or AppShell
ac0db6697 feat enable standalone by default in new applications
a189962a5 feat generate functional interceptors by default
a23a1acab fix update @angular/cli version specifier to use ^

@​angular/cli

Commit Type Description
f4e7fa873 fix add @angular/ssr as part of the ng update packageGroup

@​angular-devkit/build-angular

Commit Type Description
8bce80b91 feat initial support for application Web Worker discovery with esbuild
c3a87a60e feat support basic web worker bundling with esbuild builders
c5f3ec71f feat support i18n inlining with esbuild-based builder
4e89c3cae fix use a dash in bundle names
61f409cbe perf disable ahead of time prerendering in vite dev-server

@​angular/ssr

| Commit | Type | Description |

... (truncated)

Commits
  • b53d5ef release: cut the v16.2.5 release
  • 493bd39 fix(@​angular-devkit/build-angular): update dependency postcss to v8.4.31
  • 0201061 test(@​angular/cli): remove Safari 15 test
  • 9333581 fix(@​angular-devkit/build-angular): do not print `Angular is running in devel...
  • 660d849 release: cut the v16.2.4 release
  • 5dc7fb1 fix(@​schematics/angular): update @angular/cli version specifier to use ^
  • ae41ab5 refactor(@​angular-devkit/build-angular): typo in ignore list plugin function
  • 64b3586 release: cut the v16.2.3 release
  • f1195d0 fix(@​ngtools/webpack): fix recursion in webpack resolve
  • 1f9caa9 refactor(@​schematics/angular): remove empty space in app.config.ts.template
  • Additional commits viewable in compare view

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    You can disable automated security fix PRs for this repo from the Security Alerts page.

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

cakr322 and others added 25 commits March 27, 2023 15:19
Fix failed start up due to Contentful type changes
Bumps [postcss](https://github.com/postcss/postcss) to 8.4.31 and updates ancestor dependency [@angular-devkit/build-angular](https://github.com/angular/angular-cli). These dependencies need to be updated together.


Updates `postcss` from 8.4.5 to 8.4.31
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](postcss/postcss@8.4.5...8.4.31)

Updates `@angular-devkit/build-angular` from 13.2.3 to 16.2.5
- [Release notes](https://github.com/angular/angular-cli/releases)
- [Changelog](https://github.com/angular/angular-cli/blob/main/CHANGELOG.md)
- [Commits](angular/angular-cli@13.2.3...16.2.5)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: indirect
- dependency-name: "@angular-devkit/build-angular"
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Oct 8, 2023
@dependabot @github
Copy link
Copy Markdown
Contributor Author

dependabot bot commented on behalf of github Oct 8, 2023

Dependabot tried to add @Trombach, @cakr322 and @eric-el-tan as reviewers to this PR, but received the following error from GitHub:

POST https://api.github.com/repos/UoA-eResearch/hub-stack/pulls/404/requested_reviewers: 422 - Reviews may only be requested from collaborators. One or more of the users or teams you specified is not a collaborator of the UoA-eResearch/hub-stack repository. // See: https://docs.github.com/rest/pulls/review-requests#request-reviewers-for-a-pull-request

@lugn621 lugn621 force-pushed the dependabot/npm_and_yarn/research-hub-web/postcss-and-angular-devkit/build-angular-8.4.31 branch from b4fccb2 to 9ea64cf Compare April 2, 2026 02:11
Comment on lines +15 to +36
name: Run linters
runs-on: ubuntu-latest

steps:
- name: Check out Git repository
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: 14

- name: Install Node.js dependencies
working-directory: ./research-hub-web
run: npm ci

- name: Install Angular CLI
run: npm install -g @angular/cli

- name: ng lint
working-directory: ./research-hub-web
run: ng lint

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}

Copilot Autofix

AI 8 days ago

To fix the problem, explicitly constrain the GITHUB_TOKEN permissions to the minimum needed. This workflow only checks out code and runs Node/Angular tooling; it does not push commits, modify issues, or publish packages. Therefore, it only needs read access to repository contents.

The best fix is to add a permissions: block at the workflow root (top level, alongside name: and on:) so that it applies to all jobs, including run-linters. Set contents: read as suggested by CodeQL. No additional libraries, steps, or functionality changes are required; we are only tightening token scope.

Concretely, in .github/workflows/linting.yml, insert:

permissions:
  contents: read

after the name: Lint line and before the on: block. No other files or regions need changes.

Suggested changeset 1
.github/workflows/linting.yml

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml
--- a/.github/workflows/linting.yml
+++ b/.github/workflows/linting.yml
@@ -1,5 +1,8 @@
 name: Lint
 
+permissions:
+  contents: read
+
 on:
   # Trigger the workflow on push or pull request,
   # but only for the main branch
EOF
@@ -1,5 +1,8 @@
name: Lint

permissions:
contents: read

on:
# Trigger the workflow on push or pull request,
# but only for the main branch
Copilot is powered by AI and may make mistakes. Always verify output.
Comment on lines +14 to +33
name: Create Sentry Release
runs-on: ubuntu-latest

steps:
- name: Check out Git repository
uses: actions/checkout@v2
- name: Get Branch
id: var
run: echo ::set-output name=branch::${GITHUB_REF#refs/*/}
- name: Output Branch
run: echo ${{ steps.var.outputs.branch }}
- name: Notify Sentry
# https://github.com/getsentry/action-release
uses: getsentry/action-release@v1.1.6
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: university-of-auckland-7o
SENTRY_PROJECT: research-hub
with:
environment: ${{ steps.var.outputs.branch }} No newline at end of file

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}

Copilot Autofix

AI 8 days ago

In general, the fix is to add an explicit permissions block that limits the GITHUB_TOKEN to the minimum required scopes. This can be done either at the root of the workflow (applies to all jobs) or within the specific job. Since this workflow only defines a single job, either location is fine; placing it at the job level makes the intent local and clear.

The sentry-release job uses actions/checkout@v2 and a Sentry release action. Both only require read access to repository contents to function; they do not need to push commits or modify issues/PRs. Therefore, the best fix is to add permissions: contents: read to the sentry-release job. Concretely, in .github/workflows/sentry.yml, under jobs: sentry-release:, insert a permissions: section between runs-on: ubuntu-latest and steps:. No imports or additional methods are needed, as this is purely a YAML configuration change.

Suggested changeset 1
.github/workflows/sentry.yml

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/.github/workflows/sentry.yml b/.github/workflows/sentry.yml
--- a/.github/workflows/sentry.yml
+++ b/.github/workflows/sentry.yml
@@ -13,6 +13,8 @@
   sentry-release:
     name: Create Sentry Release
     runs-on: ubuntu-latest
+    permissions:
+      contents: read
 
     steps:
       - name: Check out Git repository
EOF
@@ -13,6 +13,8 @@
sentry-release:
name: Create Sentry Release
runs-on: ubuntu-latest
permissions:
contents: read

steps:
- name: Check out Git repository
Copilot is powered by AI and may make mistakes. Always verify output.
run: echo ${{ steps.var.outputs.branch }}
- name: Notify Sentry
# https://github.com/getsentry/action-release
uses: getsentry/action-release@v1.1.6

Check warning

Code scanning / CodeQL

Unpinned tag for a non-immutable Action in workflow Medium

Unpinned 3rd party Action 'Sentry Release' step
Uses Step
uses 'getsentry/action-release' with ref 'v1.1.6', not a pinned commit hash

module.exports.search = async (event, context) => {
try {
console.log(`Received query: ${event.body}`);

Check warning

Code scanning / CodeQL

Log injection Medium

Log entry depends on a
user-provided value
.

Copilot Autofix

AI 8 days ago

In general, user-controlled data should be sanitized before being included in log messages. For plain-text logs, this usually means stripping carriage-return and newline characters so that a single call to console.log cannot create multiple log lines. It is also helpful to clearly delimit or structure the logged user input.

For this specific case, the best fix with minimal functional impact is to sanitize event.body just for logging. We can create a local variable, e.g. sanitizedBody, where we remove \r and \n from event.body using String.prototype.replace with a regular expression, then log that sanitized value. All subsequent uses of event.body (such as JSON.parse(event.body)) should remain unchanged to preserve existing behavior.

Concretely, in hub-search-proxy/handler.js inside module.exports.search, replace line 53 so that it first derives a sanitized string from event.body and logs that. No new imports or external dependencies are needed.

Suggested changeset 1
hub-search-proxy/handler.js

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/hub-search-proxy/handler.js b/hub-search-proxy/handler.js
--- a/hub-search-proxy/handler.js
+++ b/hub-search-proxy/handler.js
@@ -50,10 +50,10 @@
 
 module.exports.search = async (event, context) => {
     try {
-        console.log(`Received query: ${event.body}`);
+        const sanitizedBody = String(event.body).replace(/[\r\n]/g, '');
+        console.log(`Received query: ${sanitizedBody}`);
         const requestBody = JSON.parse(event.body);
         let queryString = '';
-        let size = 10;
         let from = 0;
         let queryFilters = {};
         let queryFiltersCount = 0;
EOF
@@ -50,10 +50,10 @@

module.exports.search = async (event, context) => {
try {
console.log(`Received query: ${event.body}`);
const sanitizedBody = String(event.body).replace(/[\r\n]/g, '');
console.log(`Received query: ${sanitizedBody}`);
const requestBody = JSON.parse(event.body);
let queryString = '';
let size = 10;
let from = 0;
let queryFilters = {};
let queryFiltersCount = 0;
Copilot is powered by AI and may make mistakes. Always verify output.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants