Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
7503d5a
missing npm run build command
Nyzl Oct 28, 2024
75bb64a
localhost doesn't use https
Nyzl Oct 28, 2024
f89823c
update production URL
Nyzl Oct 28, 2024
10e936d
Merge pull request #271 from alphagov/IA-20241028
nacnudus Feb 3, 2025
211ce0e
Add Actionlint Checks
dj-maisy Feb 21, 2025
3ded7c5
Multiple Action Linting fixes
dj-maisy Mar 7, 2025
0be6176
A Checkout v3 was missed by the last search
dj-maisy Mar 7, 2025
e4582ca
Merge pull request #283 from alphagov/add-actionlint-to-all-repos
dj-maisy Mar 7, 2025
3baf9f6
chore(deps): bump on-headers and express-session
dependabot[bot] Jul 18, 2025
99db3c5
chore(deps): bump form-data and @cypress/request
dependabot[bot] Jul 21, 2025
dc3b6b8
chore(deps-dev): bump tmp from 0.2.1 to 0.2.4
dependabot[bot] Aug 6, 2025
044e9bc
Merge pull request #288 from alphagov/dependabot/npm_and_yarn/multi-0…
nacnudus Aug 8, 2025
288d2d9
Merge pull request #291 from alphagov/dependabot/npm_and_yarn/tmp-0.2.4
nacnudus Aug 8, 2025
f7a6664
Merge pull request #289 from alphagov/dependabot/npm_and_yarn/multi-8…
nacnudus Aug 8, 2025
43b5f73
chore(deps): bump axios from 1.7.4 to 1.8.2 in /signon-mock
dependabot[bot] Aug 8, 2025
6245e0b
Merge pull request #292 from alphagov/dependabot/npm_and_yarn/signon-…
nacnudus Aug 11, 2025
dc48cd7
chore(deps): bump axios from 1.7.4 to 1.8.2
dependabot[bot] Aug 11, 2025
fa57150
chore(deps): bump form-data from 4.0.0 to 4.0.4 in /signon-mock
dependabot[bot] Aug 11, 2025
b88ecdb
Merge pull request #293 from alphagov/dependabot/npm_and_yarn/axios-1…
nacnudus Aug 20, 2025
e51df66
Merge pull request #294 from alphagov/dependabot/npm_and_yarn/signon-…
nacnudus Aug 20, 2025
77b9cd9
chore(deps): bump brace-expansion in /signon-mock
dependabot[bot] Aug 20, 2025
8f0e603
Merge pull request #295 from alphagov/dependabot/npm_and_yarn/signon-…
Nyzl Sep 1, 2025
5d60cfc
feat: IA-1609 - implement request rate-limiting to prevent denial-of-…
aaronfowles Sep 3, 2025
aaa0bac
Merge pull request #296 from alphagov/rate-limit-auth-calls
aaronfowles Sep 8, 2025
3ccd5ae
fix: IA-1609 - configure trust proxy setting to find requestor IP whe…
aaronfowles Sep 8, 2025
cef321f
Disable Dependabot
samsimpson1 Sep 17, 2025
dc15075
Delete dependabot.yml
samsimpson1 Sep 17, 2025
18b909e
Merge pull request #300 from alphagov/samsimpson1/disable-dependabot
samsimpson1 Sep 17, 2025
e26acbb
Merge pull request #298 from alphagov/set-proxy-config-to-prevent-glo…
aaronfowles Sep 18, 2025
c00dd05
IA-1609: move setting the trust proxy to before middleware init
aaronfowles Sep 18, 2025
3f22ecb
Merge pull request #301 from alphagov/fix_proxy_setting_in_staging
aaronfowles Sep 18, 2025
0d49d92
ci: explicitly set required permissions on GitHub Actions Workflows
aaronfowles Sep 18, 2025
0be4362
Merge pull request #303 from alphagov/address_codeql_actions_permissi…
aaronfowles Sep 22, 2025
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
14 changes: 14 additions & 0 deletions .github/workflows/actionlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Lint GitHub Actions
permissions:
contents: read
on:
push:
paths: ['.github/**']
jobs:
actionlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
show-progress: false
- uses: alphagov/govuk-infrastructure/.github/actions/actionlint@main
Comment thread Fixed
9 changes: 5 additions & 4 deletions .github/workflows/check-code-hygiene.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: Code Hygiene

permissions:
contents: read
on:
pull_request:
branches:
Expand All @@ -12,18 +13,18 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Cache Node.js modules
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-

- name: Setup Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: 16

Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/check-test-coverage.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
name: Jest Coverage Check

on:
push:
branches: [main]
Expand All @@ -11,17 +10,21 @@ jobs:
name: Jest Test with Coverage Check
runs-on: ubuntu-latest

permissions:
contents: read
actions: write

steps:
- name: Check out code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: 16

- name: Cache Node.js modules
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/production-create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ jobs:
env:
commitmsg: ${{ github.event.head_commit.message }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Create Tag Name
run: |
GIT_TAG=$(date +v%Y.%m.%d)-$(git log --format=%h -1)
echo "GIT_TAG=$GIT_TAG" >> $GITHUB_ENV
echo "GIT_TAG=$GIT_TAG" >> "$GITHUB_ENV"

- name: Create Release
id: create_release
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/production-deploy.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: Deploy Production

permissions:
contents: read
on:
workflow_dispatch:
inputs:
Expand All @@ -15,7 +16,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.tag }}

Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/staging-deploy.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: Deploy Staging

permissions:
contents: read
on:
workflow_dispatch:
push:
Expand All @@ -20,7 +21,7 @@ jobs:
environment: staging
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Install Dependencies
run: npm ci
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Docs](https://docs.data-community.publishing.service.gov.uk).

- Clone this repository
- Run `npm install` to install all dependencies
- Run `npm run build`
- Install [Sass](https://sass-lang.com/install) and compile the Sass sources to CSS with `sass ./src/frontend/scss/main.scss > ./public/main.css`

- Install [webpack](https://webpack.js.org/) and compile the browser-side Typescript code to JavaScript by just running `webpack`
Expand All @@ -32,7 +33,7 @@ Docs](https://docs.data-community.publishing.service.gov.uk).

- Start the server with `npm run dev`.

- Point your browser to `https://localhost:8080` (the port can be changed using the `PORT` environment variable)
- Point your browser to `http://localhost:8080` (the port can be changed using the `PORT` environment variable)

# Developing

Expand Down Expand Up @@ -120,7 +121,7 @@ Production deployments have to be triggered manually for security reasons.

## Deployment Steps

1. Go to production site https://govgraphsearch.dev/ and view the source.
1. Go to production site https://gov-search.service.gov.uk/ and view the source.
2. Look for the line beginning `<!-- Google Tag Manager (noscript) --><noscript><iframe src="https://www.googletagmanager.com/ns.html?` and note the values of the URL parameters `id` and `gtm_auth`. They look like `GTM-XXXXXXX` and `aWEg5ABBXXXXXXXXXXXXXXXXX`.
3. Run the script `deploy-to-gcp.sh` located at the root directory
4. Enter the value of `id` as in step 2 as the GTM tracking ID.
Expand Down
Loading
Loading