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

GA: Fjerner snyk og oppdarer codeql + release #151

Merged
merged 1 commit into from
Apr 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
15 changes: 12 additions & 3 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
version: 2
registries:
maven-github:
type: maven-repository
url: https://maven.pkg.github.com/navikt/fp-felles
username: x-access-token
password: ${{ secrets.READER_TOKEN }}

updates:
- package-ecosystem: maven
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: daily
open-pull-requests-limit: 10
- package-ecosystem: github-actions
- package-ecosystem: maven
directory: "/"
registries:
- maven-github
schedule:
interval: daily
open-pull-requests-limit: 10
open-pull-requests-limit: 20
59 changes: 0 additions & 59 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

21 changes: 21 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: "CodeQL"

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
schedule:
- cron: '0 0 * * 0,4'

jobs:
codeql:
name: CodeQl
permissions:
actions: read
contents: read
security-events: write
uses: navikt/fp-gha-workflows/.github/workflows/codeql.yml@main
with:
config-file: ./.github/codeql/codeql-config.yml
secrets: inherit
41 changes: 8 additions & 33 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,13 @@
name: Publish release

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_USERNAME: x-access-token

on:
release:
types: [published]
types: [ published ]

jobs:
publish-release:
runs-on: ubuntu-latest

steps:
- name: Checkout latest code
uses: actions/checkout@v3

- name: Setup maven
uses: whelk-io/maven-settings-xml-action@v21
with:
repositories: '[{ "id": "github", "name": "github", "url": "https://maven.pkg.github.com/${{ github.repository }}", "releases": { "enabled": "true" }, "snapshots": { "enabled": "false" } }]'
servers: '[{ "id": "github", "username": "${{ github.actor }}", "password": "${{ secrets.GITHUB_TOKEN }}" }]'
output_file: settings.xml

- name: Set up JDK
uses: actions/[email protected]
with:
java-version: '17'
distribution: 'temurin'
cache: 'maven'
- name: Publish artifact
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NEW_VERSION: ${{ github.event.release.tag_name }}
run: |
mvn -B -s settings.xml versions:set -DnewVersion="${NEW_VERSION}" -DgenerateBackupPoms=false
mvn -B -s settings.xml clean deploy
release:
name: Feature
uses: navikt/fp-gha-workflows/.github/workflows/release-feature.yml@main
with:
release-version: ${{ github.event.release.tag_name }}
release-profiles: ''
secrets: inherit
42 changes: 0 additions & 42 deletions .github/workflows/snyk.yml

This file was deleted.