Skip to content
Merged
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
6 changes: 0 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,3 @@ jobs:
- name: Test Local Action
id: test-action
uses: ./
with:
milliseconds: 2000

- name: Print Output
id: output
run: echo "${{ steps.test-action.outputs.time }}"
28 changes: 28 additions & 0 deletions .github/workflows/renovate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Run renovate on k8s-actions-runner
on:
schedule:
- cron: '0 15 * * 4'

permissions:
contents: read
id-token: write

jobs:
renovate:
runs-on: xs-al2023
steps:
- uses: actions/checkout@v5
- uses: Workiva/gha-setup-credentials@v2.1.1
- id: create-github-app-token
uses: actions/create-github-app-token@v2
with:
app-id: 1217319
private-key: ${{ secrets.RENOVATE_GH_APP_PRIVATE_KEY }}
owner: Workiva # This is needed for the target repo to read gha-security
- name: Self-hosted Renovate
uses: renovatebot/github-action@v43.0.12
with:
token: ${{ steps.create-github-app-token.outputs.token }}
configurationFile: 'renovate.json'
env:
LOG_LEVEL: info
5 changes: 5 additions & 0 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

16 changes: 16 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["config:recommended"],
"repositories": ["Workiva/gha-security-scanner"],
"customManagers": [
{
"customType": "regex",
"managerFilePatterns": ["/src/main.ts/", "/__tests__/main.test.ts"],
"matchStrings": [
"url:\\s*'https://github.com/semgrep/semgrep/archive/refs/tags/v(?<currentValue>\\d+\\.\\d+\\.\\d+)\\.tar\\.gz',\\s*version:\\s*'v\\d+\\.\\d+\\.\\d+'"
],
"datasourceTemplate": "github-releases",
"depNameTemplate": "semgrep/semgrep"
}
]
}
6 changes: 6 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ import * as scanner from './scanner.js'
* @returns `Promise` that resolves when the operation is complete.
*/
export async function run(): Promise<void> {
// Required to avoid the changes made in Semgrep Release v1.128.0
delete process.env.HTTP_PROXY
delete process.env.http_proxy
delete process.env.HTTPS_PROXY
delete process.env.https_proxy

const scannerInput = inputs.getScannerInput()

let scannerInstance: scanner.Scanner
Expand Down