-
Notifications
You must be signed in to change notification settings - Fork 115
Rebase master #1342
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Rebase master #1342
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
3de08aa
Update Dockerfile to use mirrored egovio base images
nikhilmulinti cfcfe60
Update maven-java8 Dockerfile to use mirrored egovio base images
nikhilmulinti 38ae67a
Added dependabot.yml (#1058)
talele08 21f687d
Dependabot config (#1233)
talele08 6ead56c
Delete .github/dependabot.yml (#1236)
talele08 d69ce29
2.9.4 malware detection master (#1001)
Sreejit-K 45a54a1
Dependency Upgrades (#1267)
varunreddy-egov ade3e93
Removed deprecated modules (#1279)
varunreddy-egov 002b176
Patched postgres dependency (#1282)
varunreddy-egov 3696ab1
Add Scorecard workflow for supply-chain security (#1286)
varunreddy-egov 699f03f
Removed target folder (#1287)
varunreddy-egov 645987b
added permissions in workflow yaml (#1288)
varunreddy-egov b73fff6
chore: remove failing workflow actions (#1289)
varunreddy-egov c5b5edc
removed deprecated module (#1290)
varunreddy-egov 7995a4c
Added dependabot config yaml (#1291)
nikhilmulinti 791645a
chore: add PAT to read branch protection rules (#1292)
nikhilmulinti f4165ce
Revert "chore: add PAT to read branch protection rules (#1292)" (#1294)
nikhilmulinti 7df0c3c
Harden build workflow input handling (#1293)
nikhilmulinti d2f3f0a
Pdf service security patch (#1303)
shashwat-egov 7cd93ef
fix(security): close 34 Dependabot alerts in pdf-service (#1305)
shashwat-egov b9c1642
Bump org.postgresql:postgresql in /core-services/egov-malware-detecti…
dependabot[bot] 6198584
fix(security): migrate Babel 6 → Babel 7 to close CVE-2023-45133 (#1306)
shashwat-egov 78b06e6
Update pom.xml (#1307)
shashwat-egov 289b668
Bump org.postgresql:postgresql (#1298)
dependabot[bot] c2272f0
Security patch (#1312)
varunreddy-egov 2e1fe69
Fixed central instance schema name and topics resolution (#1328)
holashchand 7b9c395
chore: Change branch for push trigger to 'security-patch' (#1329)
varunreddy-egov b4f1845
Add workflow_dispatch trigger to scorecard.yml (#1331)
varunreddy-egov 9ccdd68
Security patch (#1333)
varunreddy-egov 1d07fa8
Removed deprecated modules (#1338)
varunreddy-egov 150eb15
chore: Update Scorecard workflow configuration (#1339)
varunreddy-egov 851c5a9
Revert "chore: Update Scorecard workflow configuration (#1339)" (#1340)
varunreddy-egov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,29 @@ | ||
| version: 2 | ||
| updates: | ||
|
|
||
| - package-ecosystem: "npm" | ||
| directory: "/pdf-service" | ||
| schedule: | ||
| interval: "weekly" | ||
|
|
||
| # Covers all modules listed in root pom.xml | ||
| - package-ecosystem: "maven" | ||
| directory: "/" | ||
| schedule: | ||
| interval: "weekly" | ||
|
|
||
| # Not in root pom.xml - need individual entries | ||
| - package-ecosystem: "maven" | ||
| directory: "/MDMS-v2" | ||
| schedule: | ||
| interval: "weekly" | ||
|
|
||
| - package-ecosystem: "maven" | ||
| directory: "/egov-malware-detection" | ||
| schedule: | ||
| interval: "weekly" | ||
|
|
||
| - package-ecosystem: "maven" | ||
| directory: "/egov-user" | ||
| schedule: | ||
| interval: "weekly" |
This file contains hidden or 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 was deleted.
Oops, something went wrong.
This file contains hidden or 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,77 @@ | ||
| # This workflow uses actions that are not certified by GitHub. They are provided | ||
| # by a third-party and are governed by separate terms of service, privacy | ||
| # policy, and support documentation. | ||
|
|
||
| name: Scorecard supply-chain security | ||
| on: | ||
| # For Branch-Protection check. Only the default branch is supported. See | ||
| # https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection | ||
| branch_protection_rule: | ||
| # To guarantee Maintained check is occasionally updated. See | ||
| # https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained | ||
| schedule: | ||
| - cron: '45 1 * * 4' | ||
| push: | ||
| branches: [ "master" ] | ||
|
|
||
| workflow_dispatch: | ||
|
|
||
| # Declare default permissions as read only. | ||
| permissions: read-all | ||
|
|
||
| jobs: | ||
| analysis: | ||
| name: Scorecard analysis | ||
| runs-on: ubuntu-latest | ||
| # `publish_results: true` only works when run from the default branch. conditional can be removed if disabled. | ||
| if: github.event.repository.default_branch == github.ref_name || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' | ||
| permissions: | ||
| # Needed to upload the results to code-scanning dashboard. | ||
| security-events: write | ||
| # Needed to publish results and get a badge (see publish_results below). | ||
| id-token: write | ||
|
|
||
| steps: | ||
| - name: "Checkout code" | ||
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
| with: | ||
| persist-credentials: false | ||
|
|
||
| - name: "Run analysis" | ||
| uses: ossf/scorecard-action@f49aabe0b5af0936a0987cfb85d86b75731b0186 # v2.4.1 | ||
| with: | ||
| results_file: results.sarif | ||
| results_format: sarif | ||
| # (Optional) "write" PAT token. Uncomment the `repo_token` line below if: | ||
| # - you want to enable the Branch-Protection check on a *public* repository, or | ||
| # - you are installing Scorecard on a *private* repository | ||
| # To create the PAT, follow the steps in https://github.com/ossf/scorecard-action?tab=readme-ov-file#authentication-with-fine-grained-pat-optional. | ||
| # repo_token: ${{ secrets.SCORECARD_TOKEN }} | ||
|
|
||
| # Public repositories: | ||
| # - Publish results to OpenSSF REST API for easy access by consumers | ||
| # - Allows the repository to include the Scorecard badge. | ||
| # - See https://github.com/ossf/scorecard-action#publishing-results. | ||
| # For private repositories: | ||
| # - `publish_results` will always be set to `false`, regardless | ||
| # of the value entered here. | ||
| publish_results: true | ||
|
|
||
| # (Optional) Uncomment file_mode if you have a .gitattributes with files marked export-ignore | ||
| # file_mode: git | ||
|
|
||
| # Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF | ||
| # format to the repository Actions tab. | ||
| - name: "Upload artifact" | ||
| uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1 | ||
| with: | ||
| name: SARIF file | ||
| path: results.sarif | ||
| retention-days: 5 | ||
|
|
||
| # Upload the results to GitHub's code scanning dashboard (optional). | ||
| # Commenting out will disable upload of results to your repo's Code Scanning dashboard | ||
| - name: "Upload to code-scanning" | ||
| uses: github/codeql-action/upload-sarif@v3 | ||
| with: | ||
| sarif_file: results.sarif |
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -1,27 +1,21 @@ | ||
| FROM maven:3.9.6-amazoncorretto-17 AS build | ||
| # ──────────────── BUILD STAGE ──────────────── | ||
| FROM maven:3.9-eclipse-temurin-17 AS build | ||
| ARG WORK_DIR | ||
| WORKDIR /app | ||
|
|
||
| # Copy project files | ||
| COPY ${WORK_DIR}/pom.xml ./pom.xml | ||
| COPY build/maven/start.sh ./start.sh | ||
| COPY ${WORK_DIR}/src ./src | ||
|
|
||
| # Build the project | ||
| RUN mvn -B -f /app/pom.xml package | ||
| RUN mvn -B -f /app/pom.xml package -DskipTests | ||
|
|
||
| # Runtime image – using a multi-arch base image | ||
| FROM amazoncorretto:17-alpine | ||
| # ─────────────── RUNTIME STAGE ─────────────── | ||
| FROM gcr.io/distroless/java17-debian12:nonroot | ||
|
|
||
| WORKDIR /opt/egov | ||
|
|
||
| # Copy artifacts from the build stage | ||
| COPY --from=build /app/target/*.jar /app/start.sh /opt/egov/ | ||
| # Copy artifact from the build stage | ||
| COPY --from=build /app/target/*.jar ./application.jar | ||
|
|
||
| # Ensure the start script has correct line endings and is executable | ||
| RUN dos2unix /opt/egov/start.sh && chmod +x /opt/egov/start.sh | ||
|
|
||
| # Verify architecture inside the container | ||
| RUN uname -m | ||
|
|
||
| CMD ["/opt/egov/start.sh"] | ||
| ENTRYPOINT ["java", "-jar", "application.jar"] | ||
This file contains hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.