File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ framework :
2+ - dockerfile
3+
4+ skip-check :
5+ # Skip root user check - required for Docker-in-Docker GitHub Actions runner
6+ - CKV_DOCKER_3
7+
8+ # Custom rule exclusions
9+ check :
10+ - DS002 # Also skip Trivy equivalent of the root user check
Original file line number Diff line number Diff line change 1+ {
2+ "name" : " Ubuntu" ,
3+ "image" : " mcr.microsoft.com/devcontainers/base:noble" ,
4+ "features" : {
5+ "ghcr.io/devcontainers/features/docker-in-docker:2" : {},
6+ "ghcr.io/devcontainers/features/github-cli:1" : {},
7+ "ghcr.io/devcontainers/features/node:1" : {},
8+ "ghcr.io/guiyomh/features/vim:0" : {}
9+ },
10+ "customizations" : {
11+ "vscode" : {
12+ "extensions" : [
13+ " Mattickx.copilotignore-vscode" ,
14+ " GitHub.copilot-chat" ,
15+ " GitHub.copilot"
16+ ]
17+ }
18+ }
19+ }
Original file line number Diff line number Diff line change 1+ ignored :
2+ - DL3006 # Use USER to switch to non-root when possible
3+ - DL3008 # Pin versions in apt-get install
4+ - DL3013 # Use WORKDIR to switch to a directory
5+
6+ # You can add additional rules or custom configuration here
Original file line number Diff line number Diff line change 1+ # Shellcheck configuration for docker-runner project
2+
3+ # Ignore SC1091 for logger.sh sourcing - file exists at runtime but not during linting
4+ disable =SC1091
Original file line number Diff line number Diff line change 1+ name : Build Image
2+
3+ on :
4+ pull_request :
5+ branches :
6+ - main
7+ release :
8+ types : [released]
9+
10+ concurrency :
11+ group : ${{ github.workflow }}-${{ github.ref }}
12+ cancel-in-progress : false
13+
14+ permissions : {}
15+
16+ jobs :
17+ docker :
18+ name : Docker
19+ runs-on : ubuntu-latest
20+ permissions :
21+ contents : read
22+ packages : write
23+ steps :
24+ - name : Checkout
25+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
26+ with :
27+ persist-credentials : false
28+ - name : Docker meta
29+ id : meta
30+ uses : docker/metadata-action@369eb591f429131d6889c46b94e711f089e6ca96 # v5.6.1
31+ with :
32+ images : |
33+ ghcr.io/${{ github.repository }}
34+ tags : |
35+ type=schedule
36+ type=semver,pattern={{version}}
37+ type=semver,pattern={{major}}.{{minor}}
38+ type=semver,pattern={{major}}
39+ type=ref,event=branch
40+ type=ref,event=pr
41+ type=sha
42+ - name : Set up Docker Buildx
43+ uses : docker/setup-buildx-action@c47758b77c9736f4b2ef4073d4d51994fabfe349 # v3.7.1
44+ - name : Login to Docker Hub
45+ uses : docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
46+ with :
47+ registry : ghcr.io
48+ username : ${{ github.repository_owner }}
49+ password : ${{ secrets.GITHUB_TOKEN }}
50+ - name : Build and push
51+ uses : docker/build-push-action@48aba3b46d1b1fec4febb7c167d107f5848df4c1 # v6.9.0
52+ with :
53+ context : docker
54+ push : true
55+ tags : ${{ steps.meta.outputs.tags }}
56+ labels : ${{ steps.meta.outputs.labels }}
57+ cache-from : type=gha
58+ cache-to : type=gha,mode=max
Original file line number Diff line number Diff line change 1+ name : Release Application
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ pull_request :
8+ branches :
9+ - main
10+ workflow_dispatch :
11+
12+ concurrency :
13+ group : ${{ github.workflow }}-${{ github.ref }}
14+ cancel-in-progress : false
15+
16+ permissions : {}
17+
18+ jobs :
19+ lint :
20+ name : Lint
21+ runs-on : ubuntu-latest
22+ permissions :
23+ contents : read
24+ packages : read
25+ statuses : write
26+ steps :
27+ - name : Checkout code
28+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
29+ with :
30+ fetch-depth : 0
31+ persist-credentials : false
32+ - name : Lint
33+ uses : super-linter/super-linter@88ea3923a7e1f89dd485d864c4d6ca8ac10ed345 # v8.0.0
34+ env :
35+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
36+ FILTER_REGEX_EXCLUDE : CHANGELOG.md
37+
38+ release :
39+ name : Release
40+ runs-on : ubuntu-latest
41+ needs :
42+ - lint
43+ permissions :
44+ contents : read
45+ steps :
46+ - name : Checkout
47+ uses : actions/checkout@v4
48+ with :
49+ persist-credentials : false
50+ - uses : actions/create-github-app-token@v2
51+ id : token
52+ with :
53+ app-id : ${{ vars.APP_ID_SEMREL }}
54+ private-key : ${{ secrets.APP_KEY_SEMREL }}
55+ - name : Semantic release
56+ id : semrel
57+ uses : cycjimmy/semantic-release-action@cb425203a384741b40f8c30f80b86bb0b4e70970 # v4.1.1
58+ with :
59+ dry_run : ${{ github.event_name != 'push' }}
60+ ci : true
61+ env :
62+ GITHUB_TOKEN : ${{ steps.token.outputs.token }}
Original file line number Diff line number Diff line change 1+ # dev
2+ .copilot
3+ .dev
4+
5+ # superlinter
6+ # Super-linter outputs
7+ super-linter-output
8+ super-linter.log
9+
10+ # GitHub Actions leftovers
11+ github_conf
Original file line number Diff line number Diff line change 1+ {
2+ "branches" : [" main" ],
3+ "tagFormat" : " ${version}" ,
4+ "plugins" : [
5+ " @semantic-release/commit-analyzer" ,
6+ " @semantic-release/release-notes-generator" ,
7+ [
8+ " @semantic-release/changelog" ,
9+ {
10+ "changelogFile" : " CHANGELOG.md"
11+ }
12+ ],
13+ [
14+ " @semantic-release/git" ,
15+ {
16+ "message" : " chore(release): ${nextRelease.version} [skip ci]\n\n ${nextRelease.notes}" ,
17+ "assets" : [" CHANGELOG.md" ]
18+ }
19+ ],
20+ " @semantic-release/github"
21+ ]
22+ }
Original file line number Diff line number Diff line change 1+ # Shellcheck configuration for docker-runner project
2+
3+ # Ignore SC1091 for logger.sh sourcing - file exists at runtime but not during linting
4+ disable =SC1091
Original file line number Diff line number Diff line change 1+ # Skip root user check - required for Docker-in-Docker GitHub Actions runner
2+ AVD-DS-0002
You can’t perform that action at this time.
0 commit comments