Skip to content

Commit e3c2a17

Browse files
committed
Repo Update 2025-06
1 parent 8fa4e0d commit e3c2a17

File tree

6 files changed

+185
-47
lines changed

6 files changed

+185
-47
lines changed
Lines changed: 45 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,51 @@
1-
- name: breaking change
1+
- name: status - needs triage
2+
description: New issues/PRs that need review
3+
color: 27ae60 # green
4+
- name: status - in progress
5+
description: Actively being worked on
6+
color: 2ecc40 # green
7+
- name: status - blocked
8+
description: Blocked by something else
9+
color: 16a085 # green
10+
- name: status - ready for review
11+
description: Ready for code review
12+
color: 1abc9c # green
13+
- name: type - enhancement
14+
description: Improvements to existing features
15+
color: 2986cc # blue
16+
- name: type - refactor
17+
description: Code refactoring, no user-facing change
18+
color: 1d76db # blue
19+
- name: type - test
20+
description: Related to tests or test coverage
21+
color: 0052cc # blue
22+
- name: type - ci
23+
description: Continuous integration/config changes
24+
color: 0074d9 # blue
25+
- name: type - chore
26+
description: Maintenance, build, or non-feature work
27+
color: 3399ff # blue
28+
- name: type - breaking change
229
description: Changes that will break something in the next release
3-
color: d876e3
4-
- name: bug
30+
color: ff69b4 # pink
31+
- name: type - bug
532
description: Something isn't working as expected
6-
color: f67828
7-
- name: critical
8-
description: Problems that are critical to fix immediately (e.g. data loss)
9-
color: d80000
10-
- name: dependencies
11-
description: Pull requests that update a dependency
12-
color: 861a22
13-
- name: documentation
33+
color: d80000 # red
34+
- name: type - documentation
1435
description: Improvements or additions to documentation
15-
color: 0075ca
16-
- name: duplicate
17-
description: This issue or pull request already exists elsewhere
18-
color: D9D9D6
19-
- name: feature
20-
description: New feature or request for a feature
21-
color: f1dd38
22-
- name: help wanted
23-
description: Extra attention is needed
24-
color: 366735
25-
- name: idea
26-
description: An idea that should be considered for future releases
27-
color: 6aed9c
28-
- name: invalid
29-
description: This doesn't seem right
30-
color: 000000
31-
- name: question
32-
description: Further information is requested or clarification is needed
33-
color: 9d622b
36+
color: 5dade2 # blue
37+
- name: priority - low
38+
description: Lowest priority
39+
color: ffc300 # orange
40+
- name: priority - medium
41+
description: Medium priority
42+
color: ff9900 # orange
43+
- name: priority - high
44+
description: Highest priority
45+
color: ff5733 # orange
46+
- name: good first issue
47+
description: Good for newcomers
48+
color: a259ff # purple
3449
- name: wontfix
3550
description: This will not be worked on
3651
color: ffffff

.github/workflows/codeql.yml

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
# For most projects, this workflow file will not need changing; you simply need
2+
# to commit it to your repository.
3+
#
4+
# You may wish to alter this file to override the set of languages analyzed,
5+
# or to provide custom queries or build logic.
6+
#
7+
# ******** NOTE ********
8+
# We have attempted to detect the languages in your repository. Please check
9+
# the `language` matrix defined below to confirm you have the correct set of
10+
# supported CodeQL languages.
11+
#
12+
name: 'CodeQL Advanced'
13+
14+
on:
15+
push:
16+
branches: ['main']
17+
pull_request:
18+
branches: ['main']
19+
schedule:
20+
- cron: '0 6 * * *'
21+
22+
jobs:
23+
analyze:
24+
name: Analyze (${{ matrix.language }})
25+
# Runner size impacts CodeQL analysis time. To learn more, please see:
26+
# - https://gh.io/recommended-hardware-resources-for-running-codeql
27+
# - https://gh.io/supported-runners-and-hardware-resources
28+
# - https://gh.io/using-larger-runners (GitHub.com only)
29+
# Consider using larger runners or machines with greater resources for possible analysis time improvements.
30+
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
31+
permissions:
32+
# required for all workflows
33+
security-events: write
34+
35+
# required to fetch internal or private CodeQL packs
36+
packages: read
37+
38+
# only required for workflows in private repositories
39+
actions: read
40+
contents: read
41+
42+
strategy:
43+
fail-fast: true
44+
matrix:
45+
include:
46+
- language: actions
47+
build-mode: none
48+
steps:
49+
- name: Checkout repository
50+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
51+
with:
52+
token: ${{ secrets.GITHUB_TOKEN }}
53+
54+
# Initializes the CodeQL tools for scanning.
55+
- name: Initialize CodeQL
56+
uses: github/codeql-action/init@fca7ace96b7d713c7035871441bd52efbe39e27e
57+
with:
58+
languages: ${{ matrix.language }}
59+
build-mode: ${{ matrix.build-mode }}
60+
queries: security-extended,security-and-quality
61+
62+
# If the analyze step fails for one of the languages you are analyzing with
63+
# "We were unable to automatically build your code", modify the matrix above
64+
# to set the build mode to "manual" for that language. Then modify this step
65+
# to build your code.
66+
# ℹ️ Command-line programs to run using the OS shell.
67+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
68+
- if: matrix.build-mode == 'manual'
69+
shell: bash
70+
run: |
71+
echo 'If you are using a "manual" build mode for one or more of the' \
72+
'languages you are analyzing, replace this with the commands to build' \
73+
'your code, for example:'
74+
echo ' make bootstrap'
75+
echo ' make release'
76+
exit 1
77+
78+
- name: Perform CodeQL Analysis
79+
uses: github/codeql-action/analyze@fca7ace96b7d713c7035871441bd52efbe39e27e
80+
with:
81+
category: '/language:${{matrix.language}}'

.github/workflows/container-build.yml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,35 +24,37 @@ jobs:
2424
echo "RELEASE_DATE=$(date -u '+%Y-%m-%dT%H:%M:%S%z')" >> ${GITHUB_ENV}
2525
2626
- name: Checkout code
27-
uses: actions/checkout@v4
27+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
28+
with:
29+
token: ${{ secrets.GITHUB_TOKEN }}
2830

2931
# https://github.com/docker/setup-qemu-action
3032
- name: Set up QEMU
31-
uses: docker/setup-qemu-action@v3
33+
uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392
3234

3335
# https://github.com/docker/setup-buildx-action
3436
- name: Set up Docker Buildx
35-
uses: docker/setup-buildx-action@v3
37+
uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2
3638

3739
# https://github.com/docker/login-action
3840
- name: Login to GHCR
3941
if: github.event_name != 'pull_request'
40-
uses: docker/login-action@v3
42+
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772
4143
with:
4244
registry: ghcr.io
4345
username: ${{ github.repository_owner }}
4446
password: ${{ secrets.GITHUB_TOKEN }}
4547
- name: Login to Docker Hub
4648
if: github.event_name != 'pull_request'
47-
uses: docker/login-action@v3
49+
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772
4850
with:
4951
username: ${{ secrets.DOCKERHUB_USERNAME }}
5052
password: ${{ secrets.DOCKERHUB_TOKEN }}
5153

5254
# https://github.com/docker/metadata-action
5355
- name: Set container meta
5456
id: meta
55-
uses: docker/metadata-action@v5
57+
uses: docker/metadata-action@902fa8ec7d6ecbf8d84d538b9b233a880e428804
5658
with:
5759
images: |
5860
${{ env.IMAGE_NAME }}
@@ -63,15 +65,19 @@ jobs:
6365
type=semver,pattern={{major}}.{{minor}}
6466
type=semver,pattern={{major}}
6567
type=sha
68+
type=raw,value=latest
6669
6770
# https://github.com/docker/build-push-action
6871
- name: Build and push
6972
id: build
70-
uses: docker/build-push-action@v6
73+
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83
7174
with:
7275
context: .
73-
platforms: linux/386, linux/amd64, linux/arm/v6, linux/arm/v7, linux/arm64/v8, linux/ppc64le, linux/s390x
76+
platforms: linux/amd64,linux/arm64
7477
build-args: BUILD_DATE=${{ env.RELEASE_DATE }}
7578
push: ${{ github.event_name != 'pull_request' }}
7679
tags: ${{ steps.meta.outputs.tags }}
7780
labels: ${{ steps.meta.outputs.labels }}
81+
cache-from: type=gha
82+
cache-to: type=gha,mode=max
83+
provenance: true

.github/workflows/label-syncer.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,20 @@ jobs:
1111
build:
1212
name: Sync repository labels from file
1313
runs-on: ubuntu-latest
14+
permissions:
15+
contents: read
16+
issues: write
17+
pull-requests: write
1418
steps:
1519
- name: Checkout Code
1620
id: checkout-code
17-
uses: actions/checkout@v4
21+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
22+
with:
23+
token: ${{ secrets.GITHUB_TOKEN }}
24+
1825
- name: Sync repository labels from file
1926
id: labeling
20-
uses: micnncim/action-label-syncer@v1
27+
uses: micnncim/action-label-syncer@3abd5ab72fda571e69fffd97bd4e0033dd5f495c # v1.3.0 commit SHA
2128
if: success()
2229
env:
2330
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/trivy.yml

Lines changed: 35 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
# The branches below must be a subset of the branches above
1313
branches: ['main']
1414
schedule:
15-
- cron: '32 5 * * 2'
15+
- cron: '0 5 * * *'
1616

1717
env:
1818
IMAGE_NAME: 'aessing/chronyd'
@@ -30,21 +30,50 @@ jobs:
3030
runs-on: 'ubuntu-latest'
3131
steps:
3232
- name: Checkout code
33-
uses: actions/checkout@v4
33+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
34+
with:
35+
token: ${{ secrets.GITHUB_TOKEN }}
3436

3537
- name: Build an image from Dockerfile
3638
run: |
3739
docker build -t docker.io/${{ env.IMAGE_NAME }}:trivy-${{ github.sha }} .
3840
41+
<<<<<<< HEAD
3942
- name: Run Trivy vulnerability scanner
4043
uses: aquasecurity/trivy-action@6c175e9c4083a92bbca2f9724c8a5e33bc2d97a5
44+
=======
45+
- name: Run Trivy vulnerability scanner (image)
46+
uses: aquasecurity/trivy-action@76071ef0d7ec797419534a183b498b4d6366cf37
47+
>>>>>>> 8b53ce9 (Repo Update 2025-06)
4148
with:
4249
image-ref: 'docker.io/${{ env.IMAGE_NAME }}:trivy-${{ github.sha }}'
4350
format: 'sarif'
44-
output: 'trivy-results.sarif'
51+
output: 'trivy-image-results.sarif'
52+
severity: 'CRITICAL,HIGH'
53+
exit-code: '1'
54+
55+
- name: Run Trivy vulnerability scanner (requirements.txt)
56+
uses: aquasecurity/trivy-action@76071ef0d7ec797419534a183b498b4d6366cf37
57+
with:
58+
scan-type: 'fs'
59+
scan-ref: '.'
60+
format: 'sarif'
61+
output: 'trivy-py-results.sarif'
4562
severity: 'CRITICAL,HIGH'
63+
exit-code: '1'
4664

47-
- name: Upload Trivy scan results to GitHub Security tab
48-
uses: github/codeql-action/upload-sarif@v3
65+
- name: Upload Trivy image scan results to GitHub Security tab
66+
uses: github/codeql-action/upload-sarif@fca7ace96b7d713c7035871441bd52efbe39e27e
4967
with:
50-
sarif_file: 'trivy-results.sarif'
68+
sarif_file: 'trivy-image-results.sarif'
69+
category: 'trivy-image'
70+
71+
- name: Upload Trivy Python scan results to GitHub Security tab
72+
uses: github/codeql-action/upload-sarif@fca7ace96b7d713c7035871441bd52efbe39e27e
73+
with:
74+
sarif_file: 'trivy-py-results.sarif'
75+
category: 'trivy-python'
76+
77+
- name: Docker cleanup
78+
run: |
79+
docker rmi docker.io/${{ env.IMAGE_NAME }}:trivy-${{ github.sha }} || true

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2023 Andre Essing
3+
Copyright (c) 2025 Andre Essing
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)