Skip to content

Commit

Permalink
Container registry.
Browse files Browse the repository at this point in the history
  • Loading branch information
steviemul committed Jul 30, 2024
1 parent 38af10d commit 94dfacc
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/validate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,21 @@ on:
- '*'
- '!main'

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

permissions:
contents: read
packages: write
checks: write
id-token: write

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install modules
run: npm ci
- name: eslint
Expand All @@ -24,7 +30,14 @@ jobs:
needs: [ lint ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Log in to the Container registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build local scanner action image
run: |
docker build .
Expand All @@ -33,7 +46,7 @@ jobs:
runs-on: ubuntu-latest
needs: [ build-action-docker-image ]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses : ./
name: Run action against repoository
with:
Expand Down

0 comments on commit 94dfacc

Please sign in to comment.