-
Notifications
You must be signed in to change notification settings - Fork 9
36 lines (32 loc) · 991 Bytes
/
publish.yml
File metadata and controls
36 lines (32 loc) · 991 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Publish CodeQL packs
on:
release:
types: [published]
permissions: {}
env:
REGISTRY: ghcr.io
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- uses: trailofbits/setup-codeql@615e3864087261d42cce229e3eec419ab9b22c36 # main
with:
version: '2.25.1'
platform: 'linux64'
checksum: '4f070e6cc7009e75aec307ed109c2fcf0501e579c20a31080b893e31209523d5'
- name: Log in to the Container registry
uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- run: make test
- run: make publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}