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
13 changes: 13 additions & 0 deletions .github/workflows/03-core-features--01-hello-world.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,16 @@ jobs:
runs-on: ubuntu-24.04
steps:
- run: echo "Hello from an inline bash script in a GitHub Action Workflow!"

say-hello-inline-python:
runs-on: ubuntu-24.04
steps:
- run: |
"print('Hello from an inline Python script in a GitHub Action Workflow!'
shell: python
say-hello-action:
runs-on: ubuntu-24.04
steps:
- uses: actions/hello-world-javascript-action@081a6d193d1dcb38460df1e6927486d748730f9d
with:
who-to-greet: "from an action in a GitHub Action Workflow!"
31 changes: 16 additions & 15 deletions .github/workflows/03-core-features--07-secrets-and-variables.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,33 +8,34 @@ jobs:
environment: staging
env:
# Inject repository-level secret & variable into the shell
EXAMPLE_REPOSITORY_SECRET: ${{ secrets.EXAMPLE_REPOSITORY_SECRET }}
EXAMPLE_REPOSITORY_VARIABLE: ${{ vars.EXAMPLE_REPOSITORY_VARIABLE }}
CROWDSTRIKE_SIEM_SECRET: ${{ secrets.CROWDSTRIKE_SIEM }}
SPLUNK_MSSP_SECRET: ${{ vars.SPLUNK_MSSP }}
# Inject environment-level items into the shell
EXAMPLE_ENVIRONMENT_SECRET: ${{ secrets.EXAMPLE_ENVIRONMENT_SECRET }}
EXAMPLE_ENVIRONMENT_VARIABLE: ${{ vars.EXAMPLE_ENVIRONMENT_VARIABLE }}
AZURE_URL_VARIABLE: ${{ secrets.AZURE_URL }}
YOUTUBE_URL_VARIABLE: ${{ vars.YOUTUBE_URL }}
steps:
- name: Inspect values inside job
run: |
echo "Repo secret (masked): $EXAMPLE_REPOSITORY_SECRET"
echo "Repo variable: $EXAMPLE_REPOSITORY_VARIABLE"
echo "Env secret (masked): $EXAMPLE_ENVIRONMENT_SECRET"
echo "Env variable: $EXAMPLE_ENVIRONMENT_VARIABLE"
echo "CROWDSTRIKE_SIEM_SECRET (masked): $CROWDSTRIKE_SIEM_SECRET"
echo "SPLUNK_MSSP_SECRET (masked): $SPLUNK_MSSP_SECRET"
echo "AZURE_URL_VARIABLE: $AZURE_URL_VARIABLE"
echo "YOUTUBE_URL_VARIABLE: $YOUTUBE_URL_VARIABLE"

production-environment:
runs-on: ubuntu-24.04
environment: production
env:
# Inject repository-level secret & variable into the shell
EXAMPLE_REPOSITORY_SECRET: ${{ secrets.EXAMPLE_REPOSITORY_SECRET }}
EXAMPLE_REPOSITORY_VARIABLE: ${{ vars.EXAMPLE_REPOSITORY_VARIABLE }}
CROWDSTRIKE_SIEM_SECRET: ${{ secrets.CROWDSTRIKE_SIEM }}
SPLUNK_MSSP_SECRET: ${{ vars.SPLUNK_MSSP }}
# Inject environment-level items into the shell
EXAMPLE_ENVIRONMENT_SECRET: ${{ secrets.EXAMPLE_ENVIRONMENT_SECRET }}
AZURE_URL_VARIABLE: ${{ secrets.AZURE_URL }}
YOUTUBE_URL_VARIABLE: ${{ vars.YOUTUBE_URL }}
EXAMPLE_ENVIRONMENT_VARIABLE: ${{ vars.EXAMPLE_ENVIRONMENT_VARIABLE }}
steps:
- name: Inspect values inside job
run: |
echo "Repo secret (masked): $EXAMPLE_REPOSITORY_SECRET"
echo "Repo variable: $EXAMPLE_REPOSITORY_VARIABLE"
echo "Env secret (masked): $EXAMPLE_ENVIRONMENT_SECRET"
echo "Env variable: $EXAMPLE_ENVIRONMENT_VARIABLE"
echo "Repo secret (masked): $CROWDSTRIKE_SIEM_SECRET"
echo "Repo variable: $SPLUNK_MSSP_SECRET"
echo "Env secret (masked): $AZURE_URL_VARIABLE"
echo "Env variable: $YOUTUBE_URL_VARIABLE"