Skip to content

Commit

Permalink
Lagt til codeql, fjernet jitpack (#1707)
Browse files Browse the repository at this point in the history
* Create codeql.yml

* Fjernet jitpack, bytt navn på github_password i gradle
  • Loading branch information
albrektsson authored Oct 13, 2023
1 parent 3ce736c commit 68b1d13
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-master.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ jobs:
- name: Run a build, generating the dependency graph snapshot which will be submitted
run: ./gradlew build
env:
GITHUB_PASSWORD: ${{ secrets.READER_TOKEN }}
GITHUB_TOKEN: ${{ secrets.READER_TOKEN }}

- name: Kjør tester & bygg JAR
run: ./gradlew test shadowjar
env:
GITHUB_PASSWORD: ${{ secrets.READER_TOKEN }}
GITHUB_TOKEN: ${{ secrets.READER_TOKEN }}

- uses: docker/login-action@v3
with:
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/build-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,4 @@ jobs:
- name: Kjør tester & bygg JAR
run: ./gradlew clean test shadowjar
env:
GITHUB_USERNAME: x-access-token
GITHUB_PASSWORD: ${{ secrets.READER_TOKEN }}
GITHUB_TOKEN: ${{ secrets.READER_TOKEN }}
16 changes: 16 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: CodeQL
on:
push:
branches: [ master ]

jobs:
codeql:
uses: navikt/sif-gha-workflows/.github/workflows/gradle-codeql.yml@main
permissions:
actions: read
contents: read
pull-requests: read
security-events: write
secrets: inherit
with:
readertoken: true
3 changes: 1 addition & 2 deletions .github/workflows/deploy-preprod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ jobs:
- name: Kjør tester & bygg JAR
run: ./gradlew test shadowjar
env:
GITHUB_USERNAME: x-access-token
GITHUB_PASSWORD: ${{ secrets.READER_TOKEN }}
GITHUB_TOKEN: ${{ secrets.READER_TOKEN }}

- uses: docker/login-action@v3
with:
Expand Down
4 changes: 1 addition & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -106,13 +106,11 @@ repositories {
url = uri("https://maven.pkg.github.com/navikt/dusseldorf-ktor")
credentials {
username = project.findProperty("gpr.user") as String? ?: "x-access-token"
password = project.findProperty("gpr.key") as String? ?: System.getenv("GITHUB_PASSWORD")
password = project.findProperty("gpr.key") as String? ?: System.getenv("GITHUB_TOKEN")
}
}

mavenCentral()
maven("https://jitpack.io")

mavenLocal()
}

Expand Down

0 comments on commit 68b1d13

Please sign in to comment.