-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into dependabot/npm_and_ya…
…rn/frontend/npm-run-all2-7.0.2
- Loading branch information
Showing
19 changed files
with
1,539 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/sh | ||
local_reference=$(git rev-parse --symbolic-full-name HEAD) | ||
local_object_name=$(git rev-parse HEAD) | ||
# Strong assumption that we run after the commit has been created (not before)! | ||
remote_reference=$(git branch --format="%(upstream)" --list $(git rev-parse --abbrev-ref HEAD)) | ||
|
||
remote_object_name=$(git rev-parse $remote_reference) | ||
|
||
echo $local_reference \ | ||
$local_object_name \ | ||
${remote_reference:-0000000000000000000000000000000000000000} \ | ||
${remote_object_name:-0000000000000000000000000000000000000000} \ | ||
| talisman --githook pre-push |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/sh | ||
|
||
./gradlew spotlessCheck |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/sh | ||
|
||
./gradlew :spotlessApply |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/sh | ||
|
||
while read -r local_ref local_sha remote_ref remote_sha; do | ||
echo "$local_ref $local_sha $remote_ref $remote_sha" | talisman --githook pre-push | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,22 +3,36 @@ scopeconfig: | |
|
||
fileignoreconfig: | ||
- filename: lefthook.yml | ||
checksum: 921432fe344ffab3de5f502c7144f9d67b07ed2e34ed6b53cdca521cba30813c | ||
checksum: 8168972ed7d27ebebc6e2c33243fad92abe4f859f3bd2edb0c3b171940cac0ec | ||
- filename: prod.Dockerfile | ||
checksum: e5d917f821d4d467ad4bcc77e165fb986971daeac4355adc0b60a758c69bf396 | ||
- filename: nginx.conf | ||
checksum: 2f9c9124d8dfb11c9d7b4ce360b266d6fc26a47fbc99782bb82cf1b57ef292c4 | ||
- filename: frontend/env.d.ts | ||
checksum: fa217d4a34afcd967e6c35b10e139cd5c52711e41c190f477576441081b5cf99 | ||
- filename: LICENSE | ||
checksum: 00de5fa1aad2fcb968beb5d1bbf09931fc9d3f160f11b945b24f3203ea025917 | ||
|
||
allowed_patterns: | ||
# SHA-pinned versions of GitHub actions | ||
# allow these specific patterns that include hex encoded text | ||
- "uses: aquasecurity/trivy-action@cf990b19d84bbbe1eb8833659989a7c1029132e3" | ||
- "uses: digitalservicebund/notify-on-failure-gha@814d0c4b2ad6a3443e89c991f8657b10126510bf" | ||
- "uses: digitalservicebund/setup-sonarscanner@3ade23691f865c02dce6b46452947a0e7944196e" | ||
- "uses: digitalservicebund/talisman-secrets-scan-action@9a4cb85589e29a62b4546eb566119753a5680aeb" | ||
- "uses: sonarsource/sonarqube-quality-gate-action@424137db1fae80e9eb279829995166f2f44bc8df" | ||
# patterns with "secret" | ||
- "uses: aquasecurity/trivy-action@18f2510ee396bbf400402947b394f2dd8c87dbb0" | ||
- "uses: docker/login-action@7ca345011ac4304463197fac0e56eab1bc7e6af0" | ||
- "uses: sigstore/cosign-installer@e11c0892438d2c0a48e49dee376e4883f10f2e59" | ||
- "dsn: 'https://[email protected]/4508482613084160'" | ||
# allow these specific patterns with the term "secret" | ||
- secrets-scan-with-talisman | ||
- "secrets: inherit" | ||
- "SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}" | ||
- "# scan for secrets that were published by mistake" | ||
# patterns with "key" | ||
- "password: \\$\\{\\{ secrets.GITHUB_TOKEN \\}\\}" | ||
# allow these specific patterns with the term "key" | ||
- "key: modules-" | ||
- "key:.+runner.os" | ||
- "key[s]?: docker-frontend-images-cache" | ||
- "key: npm-cache" | ||
- "sonar.projectKey=digitalservicebund_ris-adm-vwv" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
FROM node:23.1.0 | ||
|
||
# make the 'app' folder the current working directory | ||
WORKDIR /frontend | ||
|
||
# copy both 'package.json' and 'package-lock.json' (if available) | ||
COPY /frontend/package*.json ./ | ||
|
||
# install project dependencies | ||
RUN npm install | ||
|
||
# copy project files and folders to the current working directory (i.e. 'app' folder) | ||
COPY /frontend/. . | ||
|
||
# build app for production with minification | ||
RUN npm run build | ||
|
||
EXPOSE 5173 | ||
CMD [ "npm", "run", "dev", "--", "--host" ] |
Oops, something went wrong.