Skip to content

Commit 6e2e5a1

Browse files
authored
Initial commit
0 parents  commit 6e2e5a1

103 files changed

Lines changed: 11191 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.devcontainer/devcontainer.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"customizations": {
3+
"vscode": {
4+
"extensions": [
5+
"ms-python.python",
6+
"ms-python.vscode-pylance",
7+
"ms-vscode.cpptools-extension-pack",
8+
"redhat.vscode-yaml",
9+
"golang.go",
10+
"vitest.explorer"
11+
]
12+
}
13+
},
14+
"postCreateCommand": "pip install -r requirements.txt && npm install --prefix Season-3/",
15+
"features": {
16+
"ghcr.io/devcontainers/features/python:1.7.1": {},
17+
"ghcr.io/devcontainers/features/node:1": {}
18+
},
19+
"containerEnv": {
20+
"SEASON_3_LEVEL_1_SECRET": "PLAY2WIN",
21+
"SEASON_3_LEVEL_2_SECRET": "R3FUND11",
22+
"SEASON_3_LEVEL_3_SECRET": "OMG123GO",
23+
"SEASON_3_LEVEL_4_SECRET": "WIN8CODE",
24+
"SEASON_3_LEVEL_5_SECRET": "GIFT2YOU",
25+
"SEASON_3_LEVEL_6_SECRET": "CODE4FUN"
26+
}
27+
}

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "monthly"
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: "CodeQL Analysis"
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
analyze:
11+
name: Analyze
12+
runs-on: ubuntu-latest
13+
permissions:
14+
actions: read
15+
contents: read
16+
security-events: write
17+
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
language: ['python', 'go', 'javascript']
22+
23+
steps:
24+
- name: Checkout repository
25+
uses: actions/checkout@v5
26+
27+
- name: Initialize CodeQL
28+
uses: github/codeql-action/init@v3
29+
with:
30+
languages: ${{ matrix.language }}
31+
32+
- name: Autobuild
33+
uses: github/codeql-action/autobuild@v3
34+
35+
- name: Perform CodeQL Analysis
36+
uses: github/codeql-action/analyze@v3

.github/workflows/jarvis-code.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# //////////////////////////////////////////////////////////////////////////////////////////////////
2+
# /// ///
3+
# /// 1. Review the code in this file. Can you spot the bug? ///
4+
# /// 2. Fix the bug and push your solution so that GitHub Actions can run ///
5+
# /// 3. You successfully completed this level when .github/workflows/jarvis-hack.yml pass 🟢 ///
6+
# /// 4. If you get stuck, read the hint in hint-1.txt and try again ///
7+
# /// 5. If you need more guidance, read the hint in hint-2.txt and try again ///
8+
# /// 6. Compare your solution with solution.yml. Remember, there are several possible solutions ///
9+
# /// ///
10+
# //////////////////////////////////////////////////////////////////////////////////////////////////
11+
12+
name: CODE - Jarvis Gone Wrong
13+
14+
on:
15+
push:
16+
paths:
17+
- ".github/workflows/jarvis-code.yml"
18+
19+
jobs:
20+
jarvis:
21+
if: ${{ !github.event.repository.is_template }}
22+
runs-on: ubuntu-latest
23+
permissions:
24+
contents: read
25+
steps:
26+
- name: Check out code
27+
uses: actions/checkout@v5
28+
- name: Check GitHub Status
29+
# Source of GitHub Action in line 30:
30+
# https://github.com/dduzgun-security/secure-code-game-action
31+
uses: dduzgun-security/secure-code-game-action@1c9ed9f1e57d7b8c4e9bfa8013fd54e322214eb4 # v2.0
32+
with:
33+
who-to-greet: "Jarvis, obviously ..."
34+
get-token: "token-4db56ee8-dbec-46f3-96f5-32247695ab9b"

.github/workflows/jarvis-hack.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# This file is expected to fail ❌ upon push until you fix the bug
2+
# You successfully completed this level when this file pass 🟢 upon push
3+
name: HACK - Jarvis Gone Wrong
4+
5+
on:
6+
push:
7+
paths:
8+
- ".github/workflows/jarvis-code.yml"
9+
10+
jobs:
11+
jarvis:
12+
if: ${{ !github.event.repository.is_template }}
13+
runs-on: ubuntu-latest
14+
permissions:
15+
contents: read
16+
steps:
17+
- name: Check out code
18+
uses: actions/checkout@v5
19+
20+
- name: Check for insecure actions
21+
run: |
22+
if grep -q "uses: dduzgun-security/secure-code-game-action@" $GITHUB_WORKSPACE/.github/workflows/jarvis-code.yml; then
23+
echo "Insecure action detected. Please remove it from your workflow."
24+
exit 1
25+
fi

0 commit comments

Comments
 (0)