Skip to content

chore(deps): update ghcr.io/goauthentik/server docker tag to v2024.6.0 #3491

chore(deps): update ghcr.io/goauthentik/server docker tag to v2024.6.0

chore(deps): update ghcr.io/goauthentik/server docker tag to v2024.6.0 #3491

Workflow file for this run

---
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow integrates njsscan with GitHub's Code Scanning feature
# nodejsscan is a static security code scanner that finds insecure code patterns in your Node.js applications
name: njsscan sarif
on:
push:
branches:
- "main"
pull_request:
# The branches below must be a subset of the branches above
branches:
- "main"
schedule:
- cron: "45 12 * * 4"
permissions:
contents: read
jobs:
check:
name: Check
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: read
steps:
# Use the gh API to check if the repository has code scanning enabled
# We can check this at /repos/{owner}/{repo}/code-scanning/alerts
- name: Check if code scanning is enabled
id: check
env:
GH_TOKEN: ${{ github.token }}
run: |
status=$(gh api /repos/${{ github.repository }}/code-scanning/alerts -i 2>/dev/null | head -n 1 | awk '{ print $2 }')
if [[ $status == "200" ]]; then
echo "enabled=true" >> $GITHUB_OUTPUT
else
echo "enabled=false" >> $GITHUB_OUTPUT
fi
outputs:
enabled: ${{ steps.check.outputs.enabled }}
njsscan:
permissions:
contents: read # for actions/checkout to fetch code
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
runs-on: ubuntu-latest
name: njsscan code scanning
needs: check
steps:
- name: Checkout the code
if: needs.check.outputs.enabled == 'true'
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: nodejsscan scan
if: needs.check.outputs.enabled == 'true'
id: njsscan
uses: ajinabraham/njsscan-action@74e5a58c1edb363b84c9ddd626b0e22f038ac09e
with:
args: ". --sarif --output results.sarif || true"
- name: Upload njsscan report
if: needs.check.outputs.enabled == 'true'
uses: github/codeql-action/upload-sarif@23acc5c183826b7a8a97bce3cecc52db901f8251 # v3
with:
sarif_file: results.sarif