Skip to content
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

Chore #714 : Optimze Github Actions #1056

Closed
wants to merge 34 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
b8c4a48
Merge pull request #10 from OWASP/master
puneeth072003 Mar 23, 2023
4c0ec7a
Merge pull request #12 from OWASP/master
puneeth072003 Mar 29, 2023
5c34b4b
Merge pull request #13 from OWASP/master
puneeth072003 Mar 31, 2023
fa97e7b
Merge pull request #14 from OWASP/master
puneeth072003 Apr 3, 2023
7abcf44
Merge pull request #15 from OWASP/master
puneeth072003 Apr 5, 2023
51881d9
Merge pull request #16 from OWASP/master
puneeth072003 Apr 13, 2023
8cbd8d3
Merge pull request #17 from OWASP/master
puneeth072003 May 30, 2023
1bcc727
Merge branch 'master' of https://github.com/OWASP/wrongsecrets into chal
puneeth072003 Oct 26, 2023
18ac8c5
OWASP #714 : Added code to Cache the JAR file
puneeth072003 Oct 27, 2023
f6d5974
Merge pull request #18 from OWASP/master
puneeth072003 Oct 27, 2023
d899746
OWASP #714 : Fixing Cache relaed issues
puneeth072003 Oct 27, 2023
c972414
Merge branch 'chal' of https://github.com/puneeth072003/wrongsecrets …
puneeth072003 Oct 27, 2023
a613c6d
OWASP #714 : Fixing Cache related issues
puneeth072003 Oct 27, 2023
3b0a0b2
OWASP #714 : Fixing Cache related issues
puneeth072003 Oct 27, 2023
e3d1b88
OWASP #714 : Fixing Cache related issues
puneeth072003 Oct 27, 2023
fe76a18
OWASP #714 : Fixing Cache related issues
puneeth072003 Oct 27, 2023
a9d9473
OWASP #714 : Adding cache restoring job in java_swagger_doc workflow …
puneeth072003 Oct 27, 2023
cacd89d
OWASP #714 : Adding cache restoring job in java_swagger_doc workflow …
puneeth072003 Oct 30, 2023
3852a10
OWASP #714 : Adding sepreate workflow for building the cache
puneeth072003 Oct 30, 2023
0f7a3c8
OWASP #714 : Fixing issues related to triggering of workflows
puneeth072003 Oct 30, 2023
4fd1aca
OWASP #714 : Fixing issues related to triggering of workflows
puneeth072003 Oct 30, 2023
13d4aab
OWASP #714 : Fixing issues related to triggering of workflows
puneeth072003 Oct 30, 2023
cc14526
OWASP #714 : Fixing workflow triggering isues
puneeth072003 Oct 31, 2023
da7be73
OWASP #714 : Fixing workflow triggering isues
puneeth072003 Oct 31, 2023
97d7adf
OWASP #714 : Fixing workflow triggering isues
puneeth072003 Oct 31, 2023
cca1d20
OWASP #714 : Fixing workflow triggering isues
puneeth072003 Oct 31, 2023
80b8f6e
OWASP #714 : Fixing workflow triggering isues
puneeth072003 Oct 31, 2023
5573de4
OWASP #714 : Fixing workflow triggering isues
puneeth072003 Oct 31, 2023
3eb84e5
OWASP #714 : Fixing workflow triggering isues
puneeth072003 Oct 31, 2023
d68db2d
OWASP #714 : Fixing workflow triggering isues
puneeth072003 Oct 31, 2023
17fdc4a
OWASP #714 : Fixing workflow triggering isues
puneeth072003 Oct 31, 2023
7b21b89
OWASP #714 : Fixing workflow triggering isues
puneeth072003 Oct 31, 2023
4aed9af
OWASP #714 : Fixing workflow triggering isues
puneeth072003 Oct 31, 2023
1f8699a
OWASP #714 : Fixing workflow triggering isues
puneeth072003 Oct 31, 2023
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
26 changes: 26 additions & 0 deletions .github/workflows/building-jar-cache.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Building JAR cache

on:
workflow_call:

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
java-version: "21"
distribution: "corretto"
- name: Clean install
run: ./mvnw --no-transfer-progress clean install -DskipTests -Ddependency-check.skip -Dcyclonedx.skip=true -Dexec.skip
- name: Cache JAR file
id: cache-jar
uses: actions/cache@v3
with:
path: ./target/wrongsecrets-1.7.0-SNAPSHOT.jar
key: JarCache-${{ runner.os }}-${{ hashFiles('**/pom.xml') }}
restore-keys: |
JarCache-${{ runner.os }}-
18 changes: 10 additions & 8 deletions .github/workflows/dast-zap-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,16 @@ jobs:
name: DAST test with ZAP
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
java-version: "21"
distribution: "corretto"
- name: Clean install
run: ./mvnw --no-transfer-progress clean install -DskipTests -Ddependency-check.skip -Dcyclonedx.skip=true -Dexec.skip
- name: Checkout code
uses: actions/checkout@v4
- name: Trigger Building JAR cache with Git CLI
if: steps.cache.outputs.cache-hit != 'true'
run: |
curl -X POST \
-H "Authorization: ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github.v3+json" \
https://github.com/puneeth072003/wrongsecrets/blob/chal/.github/workflows/building-jar-cache.yml
-d '{"ref":"main"}'
- name: Start wrongsecrets
run: nohup ./mvnw spring-boot:run -Dspring-boot.run.profiles=without-vault &
- name: ZAP Scan
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/java_swagger_doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,23 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check the cache
uses: actions/cache/restore@v3
id: cache
with:
path: ./target
key: JarCache-${{ runner.os }}-${{ hashFiles('**/pom.xml') }}
- name: Check cache hit
id: cache-hit-check
run: echo "cache-hit=${{ steps.cache.outputs.cache-hit }}" >> $GITHUB_ENV
- name: Set up JDK 21
if: steps.cache.outputs.cache-hit != 'true'
uses: actions/setup-java@v3
with:
java-version: "21"
distribution: "corretto"
- name: Clean install
if: steps.cache.outputs.cache-hit != 'true'
run: ./mvnw --no-transfer-progress clean install -DskipTests -Ddependency-check.skip -Dcyclonedx.skip=true -Dexec.skip
- name: Compile javadoc
run: ./mvnw --no-transfer-progress compile javadoc:javadoc
Expand Down
Loading