Add CodeQL

This commit is contained in:
2022-09-25 22:53:13 +02:00
parent 31509dafe1
commit 2e02bea36c
2 changed files with 35 additions and 5 deletions

View File

@ -18,18 +18,15 @@ jobs:
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Login to Docker Hub
if: github.event_name != 'pull_request'
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to GitHub Container Registry
if: github.event_name != 'pull_request'
uses: docker/login-action@v2
@ -37,7 +34,6 @@ jobs:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@v3
@ -46,7 +42,6 @@ jobs:
thelovinator/discord-nice-embed-maker-for-my-yoy
ghcr.io/thelovinator1/discord-embed
flavor: latest=${{ github.ref == 'refs/heads/master' }}
- name: Build and push Docker image
id: build-and-push
uses: docker/build-push-action@v2