Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions .github/workflows/actions.lock
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ workflows:
'.github/workflows/container-remediation.yml':
- 'actions/checkout@v4.2.2'
- 'actions/checkout@v4.3.1'
- 'actions/create-github-app-token@v1.12.0'
- 'actions/create-github-app-token@v3.3.0'
- 'actions/download-artifact@v4.3.0'
- 'actions/setup-go@v5.6.0'
- 'actions/setup-node@v4.4.0'
Expand All @@ -35,8 +35,13 @@ workflows:
- 'actions/checkout@v4.2.2'
'.github/workflows/pr-risk.yml':
- 'actions/checkout@v4.2.2'
- 'actions/create-github-app-token@v1.12.0'
- 'actions/create-github-app-token@v3.3.0'
- 'actions/setup-node@v4.4.0'
'.github/workflows/sandboxed-agent-tests.yml':
- 'actions/checkout@v4.2.2'
'.github/workflows/sandboxed-agent.yml':
- 'actions/checkout@v4.4.0'
- 'actions/create-github-app-token@v3.3.0'
'.github/workflows/semgrep-self-test.yml': []
'.github/workflows/semgrep-tests.yml':
- 'actions/checkout@v4.2.2'
Expand All @@ -51,7 +56,7 @@ workflows:
'.github/workflows/vuln-remediation.yml':
- 'actions/checkout@v4.2.2'
- 'actions/checkout@v4.4.0'
- 'actions/create-github-app-token@v1.12.0'
- 'actions/create-github-app-token@v3.3.0'
- 'actions/download-artifact@v4.3.0'
- 'actions/setup-go@v5.6.0'
- 'actions/setup-node@v4.4.0'
Expand Down Expand Up @@ -94,6 +99,11 @@ dependencies:
commit: 'sha1-d72941d797fd3113feb6b93fd0dec494b13a2547'
owner_id: 44036562
repo_id: 642580244
'actions/create-github-app-token@v3.3.0':
ref: 'v3.3.0'
commit: 'sha1-64ab729a6294000f5aa4a4bc0b73d1f32bc45510'
owner_id: 44036562
repo_id: 642580244
'actions/download-artifact@v4.3.0':
ref: 'v4.3.0'
commit: 'sha1-d3f86a106a0bac45b974a628896c90dbdf5c8093'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/container-remediation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ jobs:
- name: Generate Go module read token
id: module-token
if: steps.go-private.outputs.repos != ''
uses: actions/create-github-app-token@v1.12.0
uses: actions/create-github-app-token@v3.3.0
with:
app-id: ${{ secrets.ADMIN_APP_ID }}
private-key: ${{ secrets.ADMIN_APP_PRIVATE_KEY }}
Expand Down Expand Up @@ -498,7 +498,7 @@ jobs:

- name: Generate app token
id: app-token
uses: actions/create-github-app-token@v1.12.0
uses: actions/create-github-app-token@v3.3.0
with:
app-id: ${{ secrets.ADMIN_APP_ID }}
private-key: ${{ secrets.ADMIN_APP_PRIVATE_KEY }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-risk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ jobs:
id: app-token
if: ${{ !cancelled() && (steps.gather.outputs.eligible == 'true' || steps.gather.outputs.commented == 'true') }}
# Pinned to a commit because this step is handed the app's private key. d72941d is v1.12.0.
uses: actions/create-github-app-token@v1.12.0
uses: actions/create-github-app-token@v3.3.0
with:
app-id: ${{ secrets.ADMIN_APP_ID }}
private-key: ${{ secrets.ADMIN_APP_PRIVATE_KEY }}
Expand Down
45 changes: 45 additions & 0 deletions .github/workflows/sandboxed-agent-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Sandboxed Agent Tests

on:
pull_request:
paths:
- .github/workflows/sandboxed-agent.yml
- .github/workflows/sandboxed-agent-tests.yml
- .github/workflows/sandboxed-agent/**
- scripts/test_sandboxed_agent.py
push:
branches: [main]
paths:
- .github/workflows/sandboxed-agent.yml
- .github/workflows/sandboxed-agent-tests.yml
- .github/workflows/sandboxed-agent/**
- scripts/test_sandboxed_agent.py

permissions:
contents: read

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.2.2
- run: |
python3 -m venv /tmp/sandboxed-agent-tests
/tmp/sandboxed-agent-tests/bin/pip install PyYAML==6.0.3
/tmp/sandboxed-agent-tests/bin/python -m unittest discover -s scripts -p test_sandboxed_agent.py

lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.2.2
- name: shellcheck and actionlint
run: |
set -euo pipefail
tarball=actionlint_1.7.7_linux_amd64.tar.gz
curl -fsSLO "https://github.com/rhysd/actionlint/releases/download/v1.7.7/$tarball"
echo "023070a287cd8cccd71515fedc843f1985bf96c436b7effaecce67290e7e0757 $tarball" | sha256sum -c -
tar -xzf "$tarball" actionlint
shellcheck .github/workflows/sandboxed-agent/*.sh
node --check .github/workflows/sandboxed-agent/mint-token.mjs
node --check .github/workflows/sandboxed-agent/checks-relay.mjs
./actionlint .github/workflows/sandboxed-agent.yml .github/workflows/sandboxed-agent-tests.yml
Loading
Loading