DevOps module 02

Design pipelines that fail safely.

A pipeline is a controlled delivery system—not a list of shell commands.

01

Trigger

Understand push, pull_request, workflow_dispatch and scheduled events.

02

Permissions

Grant the minimum contents, packages, pages and identity-token permissions required.

03

Build

Install reproducibly, compile, test and fail fast before packaging.

04

Security

Scan dependencies, secrets, code and container images before deployment.

05

Artifact

Upload an immutable build once and promote the same artifact between environments.

06

Deploy

Use protected environments, approvals, concurrency controls and clear rollback procedures.

Review questions

01

Why did the workflow run?

Identify the exact event, branch filters and path filters.

02

What can it modify?

Read permissions and environment protection before trusting a workflow.

03

How do we roll back?

Promote versioned artifacts and retain the previous known-good release.